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

Added parser for German language #39

Closed padmalcom closed 3 years ago

padmalcom commented 3 years ago

Hi, I added a parser for German numbers. Since the structure of this language differs from the structure of Englisch or French numbers (42 -> zweiundfirzig (two and forty) -> fourty-two (forty and two)), I had to create a custom class. Ordinals and floating point numbers are not yet implemented.

matsbror commented 3 years ago

Do you have any plans on merging this pull request? I would need German.

padmalcom commented 3 years ago

@matsbror Hi Mats, I published the German parser as separate library since it was needed quickly. https://pypi.org/project/text2numde/

rtxm commented 3 years ago

I had to locally fix the conflicts, and thus created a new branch for this German support proposal. See #46