pksunkara / inflect

custom inflections for nodejs
MIT License
229 stars 18 forks source link

Request: plural or singular with value #9

Closed braco closed 7 years ago

braco commented 9 years ago

I thought this existed in the package, but don't see it. Something like this:

// if value is 1, return singular("word")
// else return plural("word")
quantity("word", value);
pksunkara commented 7 years ago

There is no proper name that is suitable for the API. So, I have decided to not do this. It is simple enough that people can implement it easily.