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
Hello, thank you for this package, this is the most accurate I have seen for French numbers.
There is just one case that isn't handled correctly: the word "mille" (thousand) in french is a numeral adjective (same as "un", "deux", "trois", etc), which means that the word immediately before it shouldn't be plural (as opposed to "millions", "milliards" and following, which are common nouns).
e.g.
writtenNumber(201, { lang: "fr" }); // "deux cent un" ✅
writtenNumber(200000, { lang: "fr" }); // "deux cents mille" ❌ -> should be "deux cent mille" (same rule as 201)
writtenNumber(200000000, { lang: "fr" }); // "deux cents millions" ✅ (this is correct, "millions" is not a numeral adjective)
writtenNumber(81, { lang: "fr" }); // "quatre-vingt-un" ✅
writtenNumber(800000, { lang: "fr" }); // "quatre-vingts mille" ❌ -> should be "quatre-vingt mille" (similar to 81 rule, but no dash)
writtenNumber(800000000, { lang: "fr" }); // "quatre-vingts millions" ✅ (this is correct, "millions" is not a numeral adjective)
The text was updated successfully, but these errors were encountered:
Hello, thank you for this package, this is the most accurate I have seen for French numbers.
There is just one case that isn't handled correctly: the word "mille" (thousand) in french is a numeral adjective (same as "un", "deux", "trois", etc), which means that the word immediately before it shouldn't be plural (as opposed to "millions", "milliards" and following, which are common nouns).
e.g.
The text was updated successfully, but these errors were encountered: