How ai4bharat/indic-numtowords works
AI4Bharat num2words is a Python library that turns non-negative integers into words for English and Indian languages. Callers pass a number, language code, and optional variation or digit-splitting flags to num2words; the central module selects the language-specific conversion path and returns text or alternatives. Language modules use their own number-word data and, where applicable, utilities. The README documents all supported languages and both optional modes; unsampled implementation details are represented only at their enclosing package paths.
Main entry points: numtowords.py num2words API · indic_numtowords Standard converters
Components 9
Public interface
- num2words API
indic_numtowords/numtowords.py - Words or variations
Cardinal conversion
- Standard converters
indic_numtowords
Extended languages
- Extended converters
indic_numtowords
Language resources
- Standard number data
indic_numtowords - Language utilities
indic_numtowords - Extended number data
indic_numtowords - Extended utilities
indic_numtowords
Other components
- Library caller
Connections 8
- Library caller → num2words API: calls
- num2words API → Standard converters: dispatches
- num2words API → Extended converters: dispatches
- Standard converters → Standard number data: reads
- Standard converters → Language utilities: calls
- Extended converters → Extended number data: reads
- Extended converters → Extended utilities: calls
- num2words API → Words or variations: returns