I want to delete all words, which are not English, from the text file.
I have done some research about the topic on google and have found a python tool which is named pyenchant for this task. I have tested some English words on pyenchant but unfortunately, it does not function it supposed to do. It cannot recognize some English words such as "codependence".
>>> import enchant
>>> d = enchant.Dict("en_US")
>>> d.check("codependence")
False
I am wondering that is there any tool to delete non-english words from a text file. Any advice will be appreciated. Thanks.