French is simple wrt. pluralization: it has just 1 vs "not 1".
The main gimmick of this module is adding "s" to the word unless your provided
Rules dictionary says it should behave differently.
Create a Rules dictionary and a helper function that provides that dictionary
to the fromInt function.
Over the course of development, as you add more usages of the pluralize
function, add those words into your Rules dictionary.
You can look at the examples/ folder for the intended usage.
A Float variant of pluralize.
Pluralization function for French rules (adding
"s"in the general case).Make your own helper function that gives
pluralizeyour rules, so that you don't need to mention them every time!(See the
examples/folder.)