You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
French (Belgium) is a really complex with numbers and even as a native speaker, numbers are quite difficult to write correctly. I've been through the tests and some seem to be wrongs.
Some interesting references from Wikipedia (maybe not the most reliable sources, but at least they exist):
I'd really like this package to handle all the languages, but for the time being, I made my own package to handle all the French numbers. More information here: https://pypi.org/project/nombres-vers-lettres/. Feel free to open issues, or use it to improve this package (although my code is more spaghetti like, but it is also tested and linted).
French (Belgium) is a really complex with numbers and even as a native speaker, numbers are quite difficult to write correctly. I've been through the tests and some seem to be wrongs.
Some interesting references from Wikipedia (maybe not the most reliable sources, but at least they exist):
Big numbers names (in French)
Numbers in French (in French)
Alternative (edit)
I'd really like this package to handle all the languages, but for the time being, I made my own package to handle all the French numbers. More information here: https://pypi.org/project/nombres-vers-lettres/. Feel free to open issues, or use it to improve this package (although my code is more spaghetti like, but it is also tested and linted).
The rest of the issue
Cardinal
num2words/tests/test_fr_be.py
Lines 28 to 35 in 872510d
num2words/tests/test_fr_be.py
Lines 39 to 40 in 872510d
The correct tests would be:
Ordinal
num2words/tests/test_fr_be.py
Lines 52 to 54 in 872510d
The correct tests would be:
Also, you should test for
(2000000, 'deux millionièmes'),
, etc.Currency EUR
num2words/tests/test_fr_be.py
Line 58 in 872510d
num2words/tests/test_fr_be.py
Line 64 in 872510d
The correct tests would be:
Currency FRF
num2words/tests/test_fr_be.py
Line 58 in 872510d
num2words/tests/test_fr_be.py
Line 64 in 872510d
The correct tests would be:
The text was updated successfully, but these errors were encountered: