hunspell-si/tests/scripts/test_suggest_words.py
Petr Šabata f9e99a9722 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/hunspell-si#1fae6cb3d65b9333c888ca211cf09738fc676d8c
2020-10-15 13:04:32 +02:00

10 lines
226 B
Python

#!/usr/bin/python3
import enchant
wdlst = [ "පේ", "හලෝ", "සිංල"]
dic = enchant.Dict("si_LK")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))