Skip to main content

Search tool typos in the text, files and websites.

Project description

Python text speller

Python package Coverage Status CodeQuality Requirements Status

Pypi PyVersions

pyaspeller (Python Yandex Speller) is a search tool typos in the text, files and websites.

Used Yandex.Speller API. (restrictions)

Features

You can correct your local files

$ pyaspeller ./doc
$ pyaspeller "в суббботу утромъ"
в субботу утром

If you want to check a text you can use:

>>> from pyaspeller import YandexSpeller
>>> speller = YandexSpeller()
>>> fixed = speller.spelled('В суббботу утромь.')
>>> fixed
'В субботу утром.'

You can 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:

$ python3 -m pip install pyaspeller
$ pyaspeller --help

If you're stil using version for python2 you can use outdated version:

pip install pyaspeller==0.1.0

Thanks to

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyaspeller-0.2.0.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

pyaspeller-0.2.0-py2.py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page