Skip to content

anbsky/numword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numword
=======

Python modules to convert numbers to words. Easily extensible.

from numword import numword_ru
nw = numword_ru.NumWordRU()

nw.ordinal(325002)
'триста двадцать пять тысяч второй'

nw.cardinal(325002)
'триста двадцать пять тысяча два'

nw.inflection_case = u'жр'
nw.ordinal(325002)
'триста двадцать пять тысяч вторая'


Originally based on <http://code.google.com/p/numword/>, which is based on pynum2word.

About

Separate clone of numword, fetched from https://github.com/soshial/text-normalization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages