For context I'm trying to use PyEnchant for a uni project where I write ciphers and try to decipher text without knowing the key, and pyenchant is meant to work as a verification for when the text has been deciphered since it should detect once the deciphering algorithm is returning real words in the dictionary.
My issue is coming from trying to use the French dictionary. Now yesterday all was fine, and it was working, but since I tried to make it work on my other computer and now the French dictionary isn't working at all (but the English dictionary is working just fine). For example check("Bonjour") returns false and suggest("Bonj") returns an empty array...
I tried to reinstall pyenchant and have manually re-added the .aff and .dic files for the french dictionary but it hasn't changed anything, whats going on?
import enchant
de = enchant.Dict("en_US")
df = enchant.Dict("fr")
print(df.check("bonjour"))
print(enchant.dict_exists("fr"))
print(de.check("hello"))
>>False
>>True
>>True
For information I placed the .aff and .dic files in my hunspell folder, and it worked yesterday so I dont see why it wouldn't work today