String Pluralization in JavaScript Using Simplur

1 · · Jan. 10, 2020, midnight
Handling plural/singular forms of nouns in English can be difficult in software. Using a library called Simplur provides you with a simple JavaScript utility to solving this problem! There are some problems in programming that originate from the human language. One of these problems is singular/plural nouns. A single potato is spelled “potato” but two/more is spelled “potatoes”. How do you tackle this with JavaScript? There are several ways, but they’re not particularly elegant… const shoppingCa...