Is there any way I can use multiple dictionary in enchant. This is what I do,
import enchant
d = enchant.Dict("en_US")
d.check("materialise")
>> False
But if I use enchant.Dict("en_UK")
, I will get True
. What is the best way to combine multiple dictionaries, so that it will return True
no matter materialise
or materialize
as the input argument?
For Hunspell dictionaries there's a workaround if both dictionaries share the same
.aff
file and I supposeen_US
anden_GB
pass that condition.The author is Sergey Kurakin and the Bash script is (
dic_combine.sh
) as follows:So, you have to put those dictionary files in a directory and run: