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

[ES] Variant for number 1 #86

Closed pablodz closed 1 year ago

pablodz commented 1 year ago

Related to #64

https://github.com/allo-media/text2num/blob/master/text_to_num/lang/spanish.py --> Line 50

Actual code: --> Unit variants

UNITS["un"] = 1

This should be added: --> Unit variants

UNITS["uno"] = 1
rtxm commented 1 year ago

There is a regression in the PR. See comment there.

pablodz commented 1 year ago

Sorry about that, I made a fork because I couldn't find a way to split both cases.

https://github.com/pablodz/text2num