A module that handles getting singular and plural forms of nouns. Deals with input that is in possessive form, is an uncountable noun, and other edge cases. Does its heavy lifting with inflection.
npm install canonicalizer
var canonicalizer = require('canonicalizer'); var forms = canonicalizer.getSingularAndPluralForms('passerby'); console.log(forms, 'is the plural form of', forms, '.'); // passersby is the plural form of passerby.
Run tests with