hunspell-eu/tests/scripts/test_suggest_words.py
2021-06-03 18:42:50 +05:30

12 lines
216 B
Python

#!/usr/bin/python3
import enchant
wdlst = [ "Namak", "bidea", "Chait"]
dic = enchant.Dict("eu_ES")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))