Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "pluralize", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Pluralize and singularize any word", | ||
@@ -5,0 +5,0 @@ "main": "pluralize.js", |
@@ -336,3 +336,3 @@ /* global define */ | ||
[/(^[pl]|zomb|^(?:neck)?t|[aeo][lt]|cut)ies$/i, '$1ie'], | ||
[/([^c][eor]n|smil)ies$/i, '$1ey'], | ||
[/(\b(?:mon|smil))ies$/i, '$1ey'], | ||
[/(m|l)ice$/i, '$1ouse'], | ||
@@ -339,0 +339,0 @@ [/(seraph|cherub)im$/i, '$1'], |
@@ -8,3 +8,3 @@ # Pluralize | ||
Return a pluralized or singularized word based on the input string. | ||
> Pluralize and singularize any word. | ||
@@ -38,2 +38,6 @@ ## Installation | ||
## Why? | ||
This module uses a pre-defined list of rules, applied in order, to singularize or pluralize a given word. There are many cases where this is useful, such as any automation based on user input. For applications where the word(s) are known ahead of time, you can use a simple ternary (or function) which would be a much lighter alternative. | ||
## Usage | ||
@@ -40,0 +44,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15369
79