A python based spell checker library with support for indic languages. It can also give spelling suggestions.
Spellchecker Class. contains spell checking and suggestion methods.
Checks whether given word has correct spelling.
Parameters: |
|
---|---|
Returns: | Boolean True or False >>> a.check(u"അംഗദന്")
True
|
Return a list of misspelled words give a chunk of text.
Parameters: | text (str) – Input text. |
---|---|
Returns: | list of mispelled words.>>> a.check_batch(u"thire is only one anser")
[u'thire', u'anser']
|
Gives a list of words similar to the given word
Parameters: |
|
---|---|
Returns: | A list of suggested spellings. >>> a.suggest(u"cate")
[u'cat', u'cater', u'caters', u'cats']
|