/num-word

An simple module to convert numbers to words or words to numbers.

Primary LanguagePythonMIT LicenseMIT

num-word

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

Todo

  • implement numbers to words
  • [-] 17, 18, 19 (construct these values dynamically)
  • [-] implement words to numbers
  • [-] make it as a python package

Installation

coming soon.

Example

1     => un
13    => treize
628   => six cent vingt huit

Usage

from tools import get_str

print(get_str(840084))
print(get_str("8400"))

Contribution

Any contributions are welcome.

Author

Muhammed Zeba's Github | Muhammed Zeba's Twitter