-
Notifications
You must be signed in to change notification settings - Fork 92
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
Add Swedish support for number to word conversion #139
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## master #139 +/- ##
============================================
- Coverage 99.19% 99.18% -0.02%
- Complexity 425 447 +22
============================================
Files 67 72 +5
Lines 1736 1837 +101
Branches 50 56 +6
============================================
+ Hits 1722 1822 +100
Misses 7 7
- Partials 7 8 +1
|
Hi @jglaszka I have fixed the long value conversion to Swedish words and added more testing for this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks perfect for me, code is okay, tests covers corner cases.
|
||
// Note: Swedish uses 'common' and 'neuter' gender types, but these seem to transfer nicely for numbers to existing | ||
// masculine and feminine gender types for common, and neuter and non-applicable gender types for neuter. | ||
// Regarding base numbers, only 1 has multiple gender types: 1 and 100 being neuter ('ett'), otherwise common ('en') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explaination, it is really helpful
Fixes #120