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

issue with gender while converting currancy in ukrainian #560

Open
fo-bo opened this issue Jan 30, 2024 · 1 comment
Open

issue with gender while converting currancy in ukrainian #560

fo-bo opened this issue Jan 30, 2024 · 1 comment

Comments

@fo-bo
Copy link

fo-bo commented Jan 30, 2024

Expected Behaviour

convert ukrainian currency into words should use feminine form. if change language to 'ru', most similar to ukrainian, conversion works well and gives feminine form as ecpected

whole = '21'
integer_words = num2words.num2words(int(whole), to='cardinal', lang='uk', gender='f')
print(integer_words)

in urkainian i expect to have
двадцять одна

Actual Behaviour

after print a get

двадцять один

Steps to reproduce

import num2words
number_str = '21'
integer_words = num2words.num2words(int(number_str), to='cardinal', lang='uk', gender='f')
print(integer_words)

@smilingDima
Copy link
Contributor

It was changed in #530 - you should use gender='feminine' instead of gender='f'

from num2words import num2words
number_str = '21'
integer_words = num2words(int(number_str), to='cardinal', lang='uk', gender='feminine')
print(integer_words)

Result is:
двадцять одна

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

No branches or pull requests

2 participants