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

forty five hundred thirty => 45 130 instead of 4530 #111

Closed nmorel closed 7 months ago

nmorel commented 7 months ago

Hello,

I'm using your package and the alpha2digit method on english text. The following text returns a wrong value :
forty five hundred thirty dollars and ninety cents => 45 130 dollars and 90 cents
I'm expecting the following : 4530 dollars and 90 cents

nmorel commented 7 months ago

I'm unfamiliar with python codebase but if you can point me how to run unit test, I can try to submit a PR.