Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[es] Wrong orthography in Spanish: accents in "deciséis", "dólar", "dólares", "veintiún" #444

Closed
gonsalet opened this issue Feb 16, 2022 · 1 comment · Fixed by #443

Comments

@gonsalet
Copy link
Contributor

gonsalet commented Feb 16, 2022

Expected Behaviour

>>> from num2words import num2words
>>> num2words('16', lang='es')
'dieciséis'
>>> num2words('1', lang='es', to='currency', currency='USD')
'un dólar con cero centavos'
>>> num2words('16', lang='es', to='currency', currency='EUR')
'dieciséis euros con cero céntimos'
>>> num2words('21', lang='es', to='currency', currency='EUR')
'veintiún euros con cero céntimos'

(Correct orthography according to official Diccionario de la lengua española ( https://dle.rae.es/ ).)

Actual Behaviour

>>> from num2words import num2words
>>> num2words('16', lang='es')
'dieciseis'
>>> num2words('1', lang='es', to='currency', currency='USD')
'un dolar con cero centavos'
>>> num2words('16', lang='es', to='currency', currency='EUR')
'dieciseis euros con cero céntimos'
>>> num2words('21', lang='es', to='currency', currency='EUR')
'veintiun euros con cero céntimos'

Steps to reproduce

>>> from num2words import num2words
>>> num2words('16', lang='es')
'dieciseis'
>>> num2words('1', lang='es', to='currency', currency='USD')
'un dolar con cero centavos'
>>> num2words('16', lang='es', to='currency', currency='EUR')
'dieciseis euros con cero céntimos'
>>> num2words('21', lang='es', to='currency', currency='EUR')
'veintiun euros con cero céntimos'
@gonsalet
Copy link
Contributor Author

Fixed in pull request #443 (waiting for review).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant