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
Release files for pyaspeller 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyaspeller-0.2.0.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyaspeller-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 23.7 kB
Release files / pyaspeller-0.2.0.tar.gz
| Download URL | pyaspeller-0.2.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ffee2e9b32df479e266a9297494f514f65c12a948f06db301f89e879e952ddd
|
|
BLAKE2b-256 checksum How to use checksums |
29a9e92e85c643c87a0a776380867c75a104ccb442c61220847154b3d8a7cf6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.9
|
Release files / pyaspeller-0.2.0-py2.py3-none-any.whl
| Download URL | pyaspeller-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e5a6848db02d1c10cc4015327d386da94684bf2090562333847479353da01be2
|
|
BLAKE2b-256 checksum How to use checksums |
966fd48b211bf3c77c490707679a2e502d2686e4faa15ecca7cb5d3264a89fc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.6.9
|