schnee effeckt und fehler Korektur

This commit is contained in:
2023-08-14 17:52:24 +02:00
parent 4a843d4936
commit 79af4e9907
6813 changed files with 343821 additions and 356128 deletions

View File

@@ -1,15 +1,13 @@
# irregular-plurals [![Build Status](https://travis-ci.org/sindresorhus/irregular-plurals.svg?branch=master)](https://travis-ci.org/sindresorhus/irregular-plurals)
# irregular-plurals
> Map of nouns to their irregular plural form
> An irregular plural in this library is defined as a noun that cannot be made plural by applying these rules:
> - If the noun ends in an "s", "x", "z", "ch" or "sh", add "es"
> - 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 wherever.
The list is just a [JSON file](irregular-plurals.json) and can be used anywhere.
## Install
@@ -17,31 +15,24 @@ The list is just a [JSON file](irregular-plurals.json) and can be used wherever.
$ npm install irregular-plurals
```
## Usage
```js
const irregularPlurals = require('irregular-plurals');
console.log(irregularPlurals['cactus']);
console.log(irregularPlurals.get('cactus'));
//=> 'cacti'
console.log(irregularPlurals);
/*
{
addendum: 'addenda',
alga: 'algae',
Map {
[addendum, 'addenda'],
[alga, 'algae'],
}
*/
```
## Related
- [plur](https://github.com/sindresorhus/plur) - Pluralize a word
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)