-
Notifications
You must be signed in to change notification settings - Fork 529
Add Armenian (HY) language support #635
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
Conversation
This commit adds full support for the Armenian language to the num2words library with the following features: Complete implementation of cardinal numbers in Armenian; Support for ordinal numbers with appropriate suffixes; Support for years with special cases handling; Currency support for multiple currencies including AMD, EUR, USD and others; Proper pluralization rules for Armenian nouns; Modern numeral representation using Arabic digits; Comprehensive test suite to ensure correctness. The implementation follows Armenian grammar rules and provides correct pronunciation for all numeric forms.
|
Hello @xdownedx |
ready |
…tter branch coverage
…l, and year prefix edge cases with real Armenian words. Also add flake8 style fixes.
…date tests for joined forms, and ensure correct million grouping. All tests now pass.
…nches and lines in test_hy.py
|
@mrodriguezg1991 hey, please check my pr |
|
@mrodriguezg1991 can you review my pr? |
Done, sorry for the delay, There will be a release , some point next week |
This commit adds full support for the Armenian language to the num2words library with the following features: Complete implementation of cardinal numbers in Armenian; Support for ordinal numbers with appropriate suffixes; Support for years with special cases handling; Currency support for multiple currencies including AMD, EUR, USD and others; Proper pluralization rules for Armenian nouns; Modern numeral representation using Arabic digits; Comprehensive test suite to ensure correctness. The implementation follows Armenian grammar rules and provides correct pronunciation for all numeric forms.
Adding Armenian language support
Changes proposed in this pull request:
Status
How to verify this change
Run the tests for Armenian language with
python -m pytest tests/test_hy.py -vto verify all functionality. You can also manually test with examples like:Additional notes
The implementation follows modern Armenian (Eastern Armenian) grammar rules and provides support for all standard num2words features. Currency support includes major international currencies with proper Armenian naming conventions.