Fixes typos in text using regular expressions, based on RegExTypoFix from Wikipedia
Project description
Topy (anagram of “typo”) is a Python script to fix typos in text, based on the RegExTypoFix project from Wikipedia and AutoWikiBrowser.
Topy runs with either Python 2 or 3; you need to install dependencies listed in requirements.txt, easiest way is to use pip:
pip install -r requirements.txt
Usage:
Usage: topy.py [options] FILES... Options: -h, --help show this help message and exit -q, --quiet silence information messages -a, --apply overwrite files in place
Resources
Contributing
Code style:
In general follow the Python PEP-8 coding style, except line length can go up to 120 chars.
Strings that have meaning for humans use double quotes ("), otherwise single quotes ('). When in doubt, don’t worry about it.
Submit your changes as pull requests on Github.
License
The Topy software is licensed under the MIT license (see LICENSE.txt)
The bundled retf.txt file, copied from Wikipedia:AutoWikiBrowser/Typos by Wikipedia contributors is licensed under CC-BY-SA. See the page on Wikipedia for authorship information.
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
File details
Details for the file topy-0.0.1.tar.gz
.
File metadata
- Download URL: topy-0.0.1.tar.gz
- Upload date:
- Size: 112.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | daae68e0709869c55aa14a3002fc93d65e95414ab14bcd276dc0b4abffd567de |
|
MD5 | d6e353c0641fac6235611fd2477080bf |
|
BLAKE2b-256 | 2adfa0edbf17024620789f63f292aff6f3e1c9343a87f38c2a69e6feccafa3e0 |