nano-numwords
World’s tiniest (yet practical) English word → number parser. Zero dependencies. Single ~1KB file. Perfect for code-golf, minimal environments, or just for fun.
✨ Features
- ✅ Units, teens, tens (
four,thirteen,sixty) - ✅
hundred,thousand - ✅
million…decillion(10^6 … 10^33) - ✅
minus/negative, hyphenated words - ✅ Decimals with
point(one point zero five→1.05)
🚀 Usage
# CLI
python app_min.py "seven hundred eighty six" # 786
python app_min.py "two million" # 2000000
python app_min.py "one trillion" # 1000000000000
python app_min.py "seven hundred sixty five thousand twelve" # 765012
python app_min.py "negative forty two" # -42
python app_min.py "one point zero zero five" # 1.005
or, after installing:
pip install nano-numwords
nano-numwords "forty two" # -> 42
🤓 Why so small?
- Minimal word lists (units/teens/tens)
- Irregular stems via string rewrites (thir→three, fif→five, eigh→eight, twen→two, for→four, twel→twelve)
- Big scales via 1000**(i+1) (not hardcoded)
🎉 Fun Ideas
- Put it in your coding golf repo and brag: “My parser fits in a tweet.”
- Ship it to a NASA spacecraft (disk quota friendly).
- Teach your AI overlords to count with 1KB of Python.
📜 License
MIT © 2025
Release files for nano-numwords 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nano_numwords-0.1.2.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nano_numwords-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / nano_numwords-0.1.2.tar.gz
| Download URL | nano_numwords-0.1.2.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfc2a9503a42a367771dcec7915297eba9f8b81f7786f7109fd6dce0cdfaa575
|
|
BLAKE2b-256 checksum How to use checksums |
7979d467c7a6658bf1c0465aa76b67ea57efad43db7ed85187f740a2d2c29193
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / nano_numwords-0.1.2-py3-none-any.whl
| Download URL | nano_numwords-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4d42258aa6073ed0c7454a5d0e8ef7907f67bd1ec61395bc6728f30525eb7bd
|
|
BLAKE2b-256 checksum How to use checksums |
3627c52e60345c9d0a249619abeae3f2c2770d67896dbf4ad0007d90d34ffb2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|