allo-media / text2num

Parse and convert numbers written in French, English, Spanish, Portuguese, German and Catalan into their digit representation.
https://text2num.readthedocs.io
MIT License
102 stars 47 forks source link

does not work with ordinals #70

Closed simonm3 closed 2 years ago

simonm3 commented 2 years ago

finds twenty-third in your example but cannot find first, second, third.

rtxm commented 2 years ago

alpha2digits takes an optional parameter that let you set a threshold under which cardinal and ordinals are not translated. The default value is 3.