🍞 🍷 pluralizeME
plurilizeME module helps you to singularize or pluralize a given word.
⚙ How to use
First of all, install plurilize-me
npm i plurilize-me
or
yarn add plurilize-me
Then, you just need to import the singular and plural functions:
;
And use it!
const pluralWord = ; // Will return the string `feet`const singularWord = ; // Will return the string `foot`
🎓 Example
; const singulars = 'foot' 'computer'; let plurals = ; console;singulars;console;console;plurals;
The output of this simple code will be:
Testing singular --> plural
The plural of foot is feet
The plural of computer is computers
---------------------------
Testing plural --> singular
The singular of feet is foot
The singular of computers is computer