english
raw JSON → 2020.7.0 verified Mon Apr 27 auth: no python
A utility library for English language processing in Python, providing tools for number-to-words conversion, date formatting, and ordinal/noun inflection. Version 2020.7.0 (July 2020) is the only release; the project appears to be in maintenance mode with no recent updates.
pip install english==2020.7.0 Common errors
error ModuleNotFoundError: No module named 'english' ↓
cause Package not installed.
fix
pip install english==2020.7.0
error AttributeError: module 'english' has no attribute 'number_to_words' ↓
cause Wrong import path; number_to_words is a top-level function.
fix
from english import number_to_words
Warnings
gotcha The library is case-sensitive and expects lowercase strings for some functions (e.g., ordinal conversion).
deprecated No official deprecations announced, but the library has not been updated since 2020; consider using `inflect` or `num2words` for active maintenance.
Imports
- english
import english - number_to_words wrong
import english; english.number_to_wordscorrectfrom english import number_to_words
Quickstart
from english import number_to_words
print(number_to_words(42))
# Output: 'forty-two'