uwotm8
Converting American English to British English - a tool to automatically convert American English spelling to British English spelling in your text and code files.
- Github repository: https://github.com/i-dot-ai/uwotm8/
- Documentation https://i-dot-ai.github.io/uwotm8/
Installation
pip install uwotm8
Quick Start
Convert a single file:
uwotm8 example.txt
Convert only comments and docstrings in Python files:
uwotm8 --comments-only my_script.py
Read from stdin and write to stdout:
echo "I love the color gray." | uwotm8
# Output: "I love the colour grey."
Use in Python code:
from uwotm8 import convert_american_to_british_spelling
en_gb_str = convert_american_to_british_spelling("Our American neighbors' dialog can be a bit off-color.")
print(en_gb_str)
# Output: "Our American neighbours' dialogue can be a bit off-colour."
Features
- Converts common American English spellings to British English
- Preserves words in special contexts (code blocks, URLs, hyphenated terms)
- Maintains an ignore list of technical terms that shouldn't be converted
- Preserves original capitalization patterns
- Supports Python file mode to convert only comments and docstrings, leaving code unchanged
For full documentation, examples, and advanced usage, please visit the documentation site.
Repository initiated with fpgmaas/cookiecutter-poetry.
Metadata
Release files for uwotm8 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uwotm8-0.1.6.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uwotm8-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.3 kB
Release files / uwotm8-0.1.6.tar.gz
| Download URL | uwotm8-0.1.6.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2a19ecd556b50b5edb264d5cb8e3c48e57711360fb6e9c3f7c6d9f90575cc4b
|
|
BLAKE2b-256 checksum How to use checksums |
f8eeae52af6d5fb092a071b570afba317eaa7e2dc4da17bc71ccfe0a8080ca13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.11.13 Linux/6.11.0-1018-azure
|
Release files / uwotm8-0.1.6-py3-none-any.whl
| Download URL | uwotm8-0.1.6-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
befdb4027dd9eb701eff2ad4e5e3a0de70d6130ead70ac0733fc1605f46bca4a
|
|
BLAKE2b-256 checksum How to use checksums |
15d4d7d0be5b2499434838e61019f93dee6f3d841f60a16ecfbfa2ab480d66bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.11.13 Linux/6.11.0-1018-azure
|