Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.2 KB

README.rst

File metadata and controls

47 lines (31 loc) · 1.2 KB

Spellchecker based on Malayalam morphology analyser

PyPI Version

This is a Spellchecker 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_spellchecker import SpellChecker
spellchecker = SpellChecker()
if spellchecker.spellcheck(word) is True:
    print('%s ✔️' % (word))
else:
    print('%s ❌ Suggestions: %s' % (word, spellchecker.candidates(word)))

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