Skip to content

Commit

Permalink
Wildlife is uncountable for a reason
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Aug 4, 2015
1 parent e43bf69 commit 57ddea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pluralize.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
[/(ss)$/i, '$1'],
[/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(?:sis|ses)$/i, '$1sis'],
[/(^analy)(?:sis|ses)$/i, '$1sis'],
[/(wi|kni|(?:after|half|high|low|mid|non|night|wild|[^\w]|^)li)ves$/i, '$1fe'],
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, '$1fe'],
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, '$1f'],
[/([^aeiouy]|qu)ies$/i, '$1y'],
[/(^[pl]|zomb|^(?:neck)?t|[aeo][lt]|cut)ies$/i, '$1ie'],
Expand Down Expand Up @@ -415,6 +415,7 @@
'tuna',
'whiting',
'wildebeest',
'wildlife',
'you',
// Regexes.
/pox$/i, // "chickpox", "smallpox"
Expand Down
1 change: 1 addition & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ var BASIC_TESTS = [
['shambles', 'shambles'],
['garbage', 'garbage'],
['you', 'you'],
['wildlife', 'wildlife'],
// Latin.
['veniam', 'veniam'],
// Pluralization.
Expand Down

0 comments on commit 57ddea0

Please sign in to comment.