hunspell-kn/tests/scripts/test_suggest_words.py
Petr Šabata 631f7dfc3d 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-kn#ae03bcb1fe824482f6a0a233806a67b14165c467
2020-10-15 12:50:18 +02:00

10 lines
232 B
Python

#!/usr/bin/python3
import enchant
wdlst = [ "नमस", "तरका", "चायत"]
dic = enchant.Dict("hi_IN")
for wd in wdlst:
dic.check(wd)
print("input word = {0}, Suggestions => {1}".format(wd, dic.suggest(wd)))