Skip to content

kiddten/pyaspeller

 
 

Repository files navigation

Python text speller

Build Status Coverage Status Code Health Join the chat at https://gitter.im/oriontvv/pyaspeller

PyPI Installs Whell support license Documentation Status

Requirements Status Python versions

License

pyaspeller (Python Yandex Speller) is a search tool typos in the text, files and websites. It's open sourced under the Apache 2.0 License.

Used API Yandex.Speller.

Features (under development)

$ pyaspeller "testt reques"
{u'code': 1,
 u'col': 0,
 u'len': 5,
 u'pos': 0,
 u'row': 0,
 u's': [u'test'],
 u'word': u'testt'}
{u'code': 1,
 u'col': 6,
 u'len': 6,
 u'pos': 6,
 u'row': 0,
 u's': [u'request'],
 u'word': u'reques'}

You could use class Word for single word queries:

>>> from pyaspeller import Word
>>> check = Word('tesst')
>>> check.correct
False
>>> check.variants
[u'test']
>>> check.spellsafe
u'test'

Installation

To install pyaspeller, simply do:

$ pip install pyaspeller
$ pyaspeller --help

Restrictions API Yandex.Speller

speller has some restrictions

About

Python text speller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.7%
  • Makefile 4.3%