Skip to main content

Converting American English to British English

Project description

uwotm8

Release Build status codecov Commit activity License

Converting American English to British English - a tool to automatically convert American English spelling to British English spelling in your text and code files.

Installation

pip install uwotm8

Quick Start

Convert a single file:

uwotm8 example.txt

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 a blacklist of technical terms that shouldn't be converted
  • Preserves original capitalization patterns

For full documentation, examples, and advanced usage, please visit the documentation site.


Repository initiated with fpgmaas/cookiecutter-poetry.

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

uwotm8-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

uwotm8-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file uwotm8-0.1.0.tar.gz.

File metadata

  • Download URL: uwotm8-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for uwotm8-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b0e0cb6c8a543d8f547019db91cb250f7ebc8bb7e41a0ff4e744f6cbcc95bf9
MD5 7606ac1c106ca4ca7641d62a44609712
BLAKE2b-256 90cafa8ea4208c0d5272557426ec269c30628580112b1bc5f21a0e242427148b

See more details on using hashes here.

File details

Details for the file uwotm8-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: uwotm8-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for uwotm8-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 333e7036e3a2c680e2b5863245821809cb4dc701793c01a65e6e2cba21eb61d0
MD5 9885b49d50379d8f9695bca5402adc2e
BLAKE2b-256 c3b35e932ffdabc80bf0df923d5c1c94750ac883ef7663e47f58999fda220213

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