Skip to content

INFITTOfficial/Tamilinaiya-Spellchecker

 
 

Repository files navigation

Tamilinaiyam - Pizhaithiruthi (Spellchecker)

Python Package

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,

Installation

$ python3 -m pip install --upgrade tamilinayavaani>=0.1

Usage - in-memory

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]

Usage - file-based

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.

License

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

  1. 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

  2. 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

Packages

No packages published

Languages

  • C# 72.3%
  • Python 27.3%
  • Other 0.4%