libwords
libwords
is a tiny library for word utils.
DEVELOPMENT version
Usage
const ln = require("libnouns");
console.log(ln.plural(2, "apple")) // => 2 apples
console.log(ln.wordPlural("match")) // => matches
console.log(ln.wordSingular("queries")) // => query
console.log(ln.wordSingular("freebies", true)) // => freebie