A Node.js module that returns the plural or singular form of any noun
npm install mypluralize --save
yarn add mypluralize
bower install pluralize --save
var pluralise = require('mypluralize');
var boys = pluralise.getPlural('Boy');
console.log(boys);
var thief = pluralise.getSingular('Thieves');
console.log(thief);
Output should be 'Boys'
Output should be 'Thief'
import { getPlural } from 'mypluralize';
console.log(getPlural('Goose'))
console.log(getSingular('Guns'))
Output should be 'Geese'
Output should be 'Gun'
define(function(require,exports,module){
var pluralise = require('mypluralize');
});
npm run test