Skip to main content

Search tool typos in the text, files and websites.

Project description

Python text speller

CI Coverage Status Pypi

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyaspeller-2.0.2.tar.gz (41.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyaspeller-2.0.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

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

Hashes for pyaspeller-2.0.2.tar.gz
Algorithm Hash digest
SHA256 0aed696ab1ca11ca9d1a3874c7c2061fd567be9a2f1eff7b8e772031837701c0
MD5 223cf1c330beeed4843f38d1bca3e62c
BLAKE2b-256 6e83a4039c08cb9a57d8b7ad9e119fd87ab73ca6a8c4ea1421095afa70077979

See more details on using hashes here.

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

Hashes for pyaspeller-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ae806e7054b0758521dfccadee1aa79747220cb88f21e06f211c59b27fd8e85
MD5 f17b9d4ab76de33c81de54d2c3f37003
BLAKE2b-256 73abaf7783445d4b564a8c4f6830f4126a219901c14f6b02c03c87a3853f0bb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page