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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyaspeller-0.2.0.tar.gz.
File metadata
- Download URL: pyaspeller-0.2.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ffee2e9b32df479e266a9297494f514f65c12a948f06db301f89e879e952ddd
|
|
| MD5 |
6cbe1f8399a6d62a64f218545c66833f
|
|
| BLAKE2b-256 |
29a9e92e85c643c87a0a776380867c75a104ccb442c61220847154b3d8a7cf6c
|
File details
Details for the file pyaspeller-0.2.0-py2.py3-none-any.whl.
File metadata
- Download URL: pyaspeller-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5a6848db02d1c10cc4015327d386da94684bf2090562333847479353da01be2
|
|
| MD5 |
bff95e1e67c1ba52e8b43ed8b3fb80be
|
|
| BLAKE2b-256 |
966fd48b211bf3c77c490707679a2e502d2686e4faa15ecca7cb5d3264a89fc5
|