Python Port of TamilInaiya spell checker is named 'tamilinayavaani' and available as Python module form same name. It can be used with a UTF-8 encoded text file as follows,
$ python3 -m pip install --upgrade tamilinayavaani>=0.1
An in-memory use of the library would look like,
from tamilinaiyavaani import SpellChecker
flag,suggs=SpellChecker.REST_interface('வாழை','பழம்')
expected=['வாழைப்', 'பழம்']
assert not flag
assert expected[0]==suggs[0]
An file-based use of the library would look like,
from tamilinaiyavaani import SpellChecker, SpellCheckerResult
result = SpellChecker(fname).run() #fname is a full filename
# result is a list of SpellCheckerResult objects.
#Source: Tamil Virtual Academy release sources at link.
This code is licensed under terms of GNU GPL V2. Check https://commons.wikimedia.org/wiki/File:Tamil-Virtual-Academy-Copyright-Declaration.jpg for license info.
#Credits
-
Thanks to Tamil Virtual Academy, Chennai for releasing ths source code of this application. This work is open-source publication of Vaani from http://vaani.neechalkaran.com You can support the close-source Vaani project, an 8 yr effort as of 2020, by donating here http://neechalkaran.com/p/donate.html
-
Python Port was enabled by Kaniyam Foundation, T. Shrinivasan, @manikk, Ashok Ramachandran, and others. You can support Kaniyam Foundation and its mission by donating via instructions here, Kaniyam link. The Python port depends on tamilsandhichecker project TamilSandhiChecker and the Open-Tamil project link