irregular-plurals

Map of nouns to their irregular plural form

MIT 16 个版本
安装
npm install irregular-plurals
yarn add irregular-plurals
pnpm add irregular-plurals
bun add irregular-plurals
README

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 and can be used anywhere.

Install

npm install irregular-plurals

Usage

import irregularPlurals from 'irregular-plurals';

console.log(irregularPlurals.get('cactus'));
//=> 'cacti'

console.log(irregularPlurals);
/*
Map {
	[addendum, 'addenda'],
	[alga, 'algae'],
}
*/
  • plur - Pluralize a word
版本列表
4.2.0 2025-11-02
4.1.0 2025-09-09
4.0.0 2024-04-30
3.5.0 2023-03-11
3.4.1 2023-02-28
3.4.0 2023-01-20
3.3.0 2021-04-14
3.2.0 2020-02-16
3.1.0 2019-05-06
3.0.0 2019-04-30
2.0.0 2018-04-08
1.4.0 2017-10-13
1.3.0 2017-07-03
1.2.0 2016-06-07
1.1.0 2015-11-12
1.0.0 2015-11-11