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

Adding ptbr support #51

Closed Ryojikn closed 3 years ago

Ryojikn commented 3 years ago

I've added Ptbr support which consists of minor changes to Portuguese from Portugal, such as:

"Quatorze" > "Catorze" "Dezanove" > "Dezenove" "Dezasseis" > "Dezesseis",

Also updated unit tests and readme, as well as setup.py description. For all my tests, works even better with ptbr than default portuguese due to those minor differences in language.

Ryojikn commented 3 years ago

(Wrong branch, updating in a sec with readme and setup py updates)