Pluralizer (7.19 KB) returns the plural form of whatever word you give it.
pluralizer.run('goose') --> 'geese'
It can also take an array of arrays, each having a numeric quantity and corresponding word, and return well formed english with an Oxford comma.
pluralizer.read([[2,'orange'],[3,'peach'],[5,'cherry']]) --> '2 oranges, 3 peaches, and 5 cherries.'. pluralizer.read([[2,'orange'],[3,'peach']]) --> '2 oranges and 3 peaches.'.
Pluralizer.js returns 2 public methods
.run, and one public property,
🍎pluralizer.read returns a string with an Oxford comma in arrays of 3 or more items.
If you found a bug, have any questions or want to contribute please let me know, email@example.com.