A simple python module to convert numbers in words or words in numbers. Only support french.
Need improvement, some numbers are mis-translated.
Example: 1101 is translated un mille cent et un
instead of mille cent un
.
Don't work with decimal number
- implement numbers to words
- [-] 17, 18, 19 (construct these values dynamically)
- [-] implement words to numbers
- [-] make it as a python package
coming soon.
1 => un
13 => treize
628 => six cent vingt huit
from tools import get_str
print(get_str(840084))
print(get_str("8400"))
Any contributions are welcome.