Galerie und tage
This commit is contained in:
10
node_modules/irregular-plurals/readme.md
generated
vendored
10
node_modules/irregular-plurals/readme.md
generated
vendored
@@ -8,7 +8,7 @@
|
||||
> - If the noun ends in a "y" and is preceded by a consonant, drop the "y" and add "ies"
|
||||
> - If the noun ends in a "y" and is preceded by a vowel, add "s"
|
||||
|
||||
The list is just a [JSON file](irregular-plurals.json) and can be used anywhere.
|
||||
The list is just a [JSON file](irregular-plurals.json) and can be used wherever.
|
||||
|
||||
|
||||
## Install
|
||||
@@ -23,14 +23,14 @@ $ npm install irregular-plurals
|
||||
```js
|
||||
const irregularPlurals = require('irregular-plurals');
|
||||
|
||||
console.log(irregularPlurals.get('cactus'));
|
||||
console.log(irregularPlurals['cactus']);
|
||||
//=> 'cacti'
|
||||
|
||||
console.log(irregularPlurals);
|
||||
/*
|
||||
Map {
|
||||
[addendum, 'addenda'],
|
||||
[alga, 'algae'],
|
||||
{
|
||||
addendum: 'addenda',
|
||||
alga: 'algae',
|
||||
…
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user