mlmorph-spellchecker

Malayalam morphology analyser based spellchecker


Keywords
Malayalam, morphology, FST, analyser, generator, spellchecker
License
MIT
Install
pip install mlmorph-spellchecker==1.1.2

Documentation

Spellchecker based on Malayalam morphology analyser

PyPI Version

This is a Spellchcker for Malayalam language based on Malayalam morphology analyser - mlmorph.

Installation

Python 3 is required. Using with venv is recommended

$ pip install mlmorph_spellchecker

Usage

from mlmorph import Analyser
from mlmorph_spellchecker import spellcheck, getSuggestions
analyser = Analyser()
if spellcheck(word, analyser) is True:
    print('%s ✔️' % (word))
else:
    print('%s ❌ Suggestions: %s' % (word, getSuggestions(word, analyser)))

Command line interface

$ python -m mlmorph_spellchecker --help
usage: __main__.py [-h] word

positional arguments:
word        word to spellcheck

optional arguments:
-h, --help  show this help message and exit