Search tool typos in the text, files and websites.
Project description
Python text speller
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
- Dependencies scanned by PyUp.io
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for pyaspeller-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a6848db02d1c10cc4015327d386da94684bf2090562333847479353da01be2 |
|
MD5 | bff95e1e67c1ba52e8b43ed8b3fb80be |
|
BLAKE2b-256 | 966fd48b211bf3c77c490707679a2e502d2686e4faa15ecca7cb5d3264a89fc5 |