pyenchant cirtial enchant_is_all_caps and enchant_is_title_case assertion message

StackOverflow https://stackoverflow.com/questions/20676916

  •  19-09-2022
  •  | 
  •  

質問

I use pyenchant to auto-correct words, e.g.

import enchant
myDic = enchant.Dict('en_EN')
print myDict.check('foo')

Problem: I get the following error message from enchant, though it does not crash

** (process:24563): CRITICAL **: enchant_is_title_case: assertion `word && *word' failed

** (process:24563): CRITICAL **: enchant_is_all_caps: assertion `word && *word' failed
役に立ちましたか?

解決

Found the answer in a discussion in the pyenchant GIT repository:

It was an empty line (or something that is interpret as such) in my personal dictionary. I have mine in ~/.config/enchant/en_EN.dic

Removing the empty line solved the problem.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top