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)

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

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.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

pyaspeller-2.0.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file pyaspeller-2.0.0.tar.gz.

File metadata

  • Download URL: pyaspeller-2.0.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1015-azure

File hashes

Hashes for pyaspeller-2.0.0.tar.gz
Algorithm Hash digest
SHA256 41e4291ef68dfc4da9b6f1eab42deb699956a3a73c8c35f4ff5d55c104d18d42
MD5 1b27682f2e103feba2211a5346021099
BLAKE2b-256 987489fc58fbd0d18685e3efa009c82e21f03ee20c9bc5bfe29c7c783a213418

See more details on using hashes here.

File details

Details for the file pyaspeller-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyaspeller-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Linux/6.2.0-1015-azure

File hashes

Hashes for pyaspeller-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ecb94b0bd06992b6ae8d9754e21e0cf4fbbe1730121a2eb5ad449d6d31fbf75
MD5 026b980a62f7d5debd00774603733923
BLAKE2b-256 9b5a30ac754d8a08bbe7560ee6a932267c4961285036a0a92256886c01863b1e

See more details on using hashes here.

Supported by

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