hunspell-hi/tests/scripts/test_suggest_words.py
Parag Nemade 8a7c32c7cd
Add basic tests for CI
Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
2019-05-18 16:49:51 +05:30

12 lines
234 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)))