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)
Installation
- Highly recommend to use latest uv
uv add pyaspeller(for library mode)
Features
- Command line tool
You can correct your local files or web pages
$ uvx pyaspeller ./doc
$ uvx pyaspeller https://team-tricky.github.io
$ uvx 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'
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
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-2.0.2.tar.gz.
File metadata
- Download URL: pyaspeller-2.0.2.tar.gz
- Upload date:
- Size: 41.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0aed696ab1ca11ca9d1a3874c7c2061fd567be9a2f1eff7b8e772031837701c0
|
|
| MD5 |
223cf1c330beeed4843f38d1bca3e62c
|
|
| BLAKE2b-256 |
6e83a4039c08cb9a57d8b7ad9e119fd87ab73ca6a8c4ea1421095afa70077979
|
File details
Details for the file pyaspeller-2.0.2-py3-none-any.whl.
File metadata
- Download URL: pyaspeller-2.0.2-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ae806e7054b0758521dfccadee1aa79747220cb88f21e06f211c59b27fd8e85
|
|
| MD5 |
f17b9d4ab76de33c81de54d2c3f37003
|
|
| BLAKE2b-256 |
73abaf7783445d4b564a8c4f6830f4126a219901c14f6b02c03c87a3853f0bb4
|