Natural Language to Number Converter
JSON →text2num (v3.0.1) is an actively maintained Python library designed to parse and convert numbers expressed in natural language words from French, Spanish, English, Portuguese, German, Dutch, or Italian into their digit representations. It handles both integer parsing (`text2num`) and detection/transcription of cardinal, ordinal, and decimal numbers within a text stream (`alpha2digit`). The library is regularly updated and recently underwent a significant rewrite with a Rust backend.
Traffic · last 30 days ↑13% vs prev 7d
total hits 22
actors 8 distinct systems
last hit 1d ago ByteDance
top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore · 🇫🇷 France
Resources
packagepypi.org/project/text2num/ ↗
API endpoints
full doc /v1/registry/text2num
install /v1/registry/text2num/install
compatibility /v1/registry/text2num/compatibility