Install the library
$ pip install mlmorph_spellchecker
>>> from mlmorph_spellchecker import SpellChecker >>> spellchecker = SpellChecker() >>> word = "ഉച്ഛാരണം" >>> spellchecker.spellcheck(word) False >>> spellchecker.candidates(word) ['ഉച്ചാരണം'] >>> spellchecker.spellcheck("ചിത്രകാരൻ") True
The new version adds a database of commonly mistaken words of Malayalam for quick checks and correction. If the given word is present in that common list, spellcheck result and correction suggestions will be based on that database. This database is based on Malayalam Wikipedia’s commonly mistaken words and Kerala government glossary of such words. Source code is at gitlab
The efficiency of the spellchecker depends on the coverage of Malayalam vocabulary by morphology analyser. As Malayalam is a morphologically rich language, it has infinite vocabulary and the morphology analyser that address this nature is an ongoing project.