Skip to main content

Check text files for issues.

Project description

textcheck

Run text checks on files from the command line.

┏━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Word    ┃ Alternatives                                    ┃ Context                       ┃
┡━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ speling │ spieling, spelling, spewing, peeling, splinting │ should be checked for speling │
└─────────┴─────────────────────────────────────────────────┴───────────────────────────────┘

Installation

pip install --user textcheck

Hunspell dictionary files en_US.dic and en_US.aff need to be placed in /usr/share/hunspell directory.

Limitations

  • Only console output for now.
  • Only English language is supported.
  • Only Linux-based systems are supported.

CLI usage

spellcheck

Example invocation:

textcheck spellcheck ~/spellme.txt --ignore-list=/home/user/ignore_list.txt

Run spellcheck for a set of files.

Provided ignore list is a file with ignore words on new lines.

Usage:

$ textcheck spellcheck [OPTIONS] FILES...

Arguments:

  • FILES...: The list of files to check

Options

  • ignore_list: Path to the ignore list file.

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

textcheck-0.2.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

textcheck-0.2.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file textcheck-0.2.2.tar.gz.

File metadata

  • Download URL: textcheck-0.2.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.4 Linux/5.11.17-200.fc33.x86_64

File hashes

Hashes for textcheck-0.2.2.tar.gz
Algorithm Hash digest
SHA256 4b1cb6c080ebc5e45d062ff792d691b033044680d41fc0c9d178040faa9cff9b
MD5 eed628044035cba5727c1eff94dcbcfb
BLAKE2b-256 c137a98518243518a024fc9d9378ab20c642cc7b7c40523b233cc8d5794260b9

See more details on using hashes here.

File details

Details for the file textcheck-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: textcheck-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.4 Linux/5.11.17-200.fc33.x86_64

File hashes

Hashes for textcheck-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8e09d8fe306e3f0f4391d1bee6370ad92a028235e2926007190237eb4a7d79b4
MD5 8fa8fe292ee8a09b6555bd63d2663416
BLAKE2b-256 37f1bdd5bfe7c163af72c7ffef43ac867053842b0079f5efc779216ac5970ef4

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