Spelling mistakes - Pyenchant
问题 I tried using python library for spell-check,correcting and replacing. For some complex spelling correction, I need to have a second opinion and to see replaced word underlined or strike through. Even if the file output is in rtf format, it is ok. How to solve it? Efforts so far. import enchant from enchant.checker import SpellChecker chkr = SpellChecker("en_UK","en_US") spacedfile = "This is a setence. It has speeelinng mistake." chkr.set_text(spacedfile) for err in chkr: sug = err.suggest()