RunKit + npm: pluralize

node v13.14.0
endpointsharetweet
var pluralize = require("pluralize") console.log(`Plural of corpus: ${pluralize.plural("corpus")}`); console.log(`Singular of corpuses: ${pluralize.singular("corpuses")}`); console.log(`Singular of corpora: ${pluralize.singular("corpora")}`); console.log(`Plural of corpora: ${pluralize.plural("corpora")}`); pluralize.addIrregularRule("corpus", "corpora"); console.log("---------------------------"); console.log(`Plural of corpus: ${pluralize.plural("corpus")}`); console.log(`Singular of corpuses: ${pluralize.singular("corpuses")}`); console.log(`Singular of corpora: ${pluralize.singular("corpora")}`); console.log(`Plural of corpora: ${pluralize.plural("corpora")}`);
Created from: https://npm.runkit.com/pluralize
Loading…