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

[DE] fix hundred addition #102

Closed Kakadus closed 11 months ago

Kakadus commented 11 months ago

close #100 This tries to tackle the issue by requiring that a multiplier must be before a "hundred construction" so that something like "dreizehn siebenhundert" is no longer summed.

rtxm commented 11 months ago

Thank you very much for your contribution. How does this behave when using the alpha2digit function?

Kakadus commented 11 months ago

It should be working.. I added some tests for alpha2digit. There is a github incident, but at https://github.com/Kakadus/text2num/tree/fix-hundred-addition, the commit 16f91bddf41a31545221403e6de551e883c15187 should contain it