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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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