Search tool typos in the text, files and websites.
Project description
Python text speller
pyaspeller (Python Yandex Speller) is a cli tool and pure python library for searching typos in texts, files and websites.
Spell checking uses Yandex.Speller API. (restrictions)
Features
- Command line tool
You can correct your local files or web pages
$ pyaspeller ./doc
$ pyaspeller https://team-tricky.github.io
$ pyaspeller "в суббботу утромъ"
в субботу утром
- Library
Use speller for your code
>>> from pyaspeller import YandexSpeller
>>> speller = YandexSpeller()
>>> fixed = speller.spelled('Triky Custle is a great puzzle game.')
>>> fixed
'Tricky Castle is a great puzzle game.'
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
Use your favourite package manager:
$ python3 -m pip install pyaspeller
For python2 you can use outdated version:
$ pip install pyaspeller==0.1.0
Also there are available rust and javascript versions of this speller.
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.3.tar.gz
(12.1 kB
view hashes)
Built Distribution
pyaspeller-0.2.3-py3-none-any.whl
(12.2 kB
view hashes)
Close
Hashes for pyaspeller-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81f44b1b385e497b684c4a147bcb3973490d02df4bd7786e0eb9adaa13602e65 |
|
MD5 | b5859a230040bc2b665886adaf99a23d |
|
BLAKE2b-256 | 3348fd8724580f2009e419d83aba2306734a629ff06cc758348066635f92ace2 |