openoffice-lv/tests/scripts/test_suggest_words.py
2023-07-10 08:49:17 +02:00

11 lines
220 B
Python

#!/usr/bin/python3
import enchant
wdlst = [ "Sveikii", "atsēstis", "buķtes"]
dic = enchant.Dict("lv")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))