Skip to content

Commit

Permalink
More words ending in "ie"
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Aug 28, 2019
1 parent 0265e4d commit abb3991
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pluralize.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, '$1fe'],
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, '$1f'],
[/ies$/i, 'y'],
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, '$1ie'],
[/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ec|ck|ix|sser|ts|wb)ies$/i, '$1ie'],
[/\b(l|(?:neck|cross|hog|aun)?t|coll|faer|food|gen|goon|group|hipp|junk|vegg|(?:pork)?p|charl|calor|cut)ies$/i, '$1ie'],
[/\b(mon|smil)ies$/i, '$1ey'],
[/\b((?:tit)?m|l)ice$/i, '$1ouse'],
[/(seraph|cherub)im$/i, '$1'],
Expand Down Expand Up @@ -474,7 +475,6 @@
'shambles',
'shrimp',
'software',
'species',
'staff',
'swine',
'tennis',
Expand Down
46 changes: 44 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var BASIC_TESTS = [
['police', 'police'],
['sheep', 'sheep'],
['series', 'series'],
['species', 'species'],
['agenda', 'agenda'],
['news', 'news'],
['reindeer', 'reindeer'],
Expand Down Expand Up @@ -325,7 +324,6 @@ var BASIC_TESTS = [
['uterus', 'uteri'],
['curriculum', 'curricula'],
['quorum', 'quora'],
['genie', 'genies'],
['genius', 'geniuses'],
['flower', 'flowers'],
['crash', 'crashes'],
Expand Down Expand Up @@ -611,6 +609,50 @@ var BASIC_TESTS = [
['slice', 'slices'],
['base', 'bases'],
['database', 'databases'],
['rise', 'rises'],
['uprise', 'uprises'],
['size', 'sizes'],
['prize', 'prizes'],
['booby', 'boobies'],
['hobby', 'hobbies'],
['baby', 'babies'],
['cookie', 'cookies'],
['budgie', 'budgies'],
['calorie', 'calories'],
['brownie', 'brownies'],
['lolly', 'lollies'],
['hippie', 'hippies'],
['smoothie', 'smoothies'],
['techie', 'techies'],
['specie', 'species'],
['quickie', 'quickies'],
['pixie', 'pixies'],
['rotisserie', 'rotisseries'],
['porkpie', 'porkpies'],
['newbie', 'newbies'],
['veggie', 'veggies'],
['bourgeoisie', 'bourgeoisies'],
['party', 'parties'],
['apology', 'apologies'],
['ancestry', 'ancestries'],
['anomaly', 'anomalies'],
['anniversary', 'anniversaries'],
['battery', 'batteries'],
['nappy', 'nappies'],
['hanky', 'hankies'],
['junkie', 'junkies'],
['hogtie', 'hogties'],
['footsie', 'footsies'],
['curry', 'curries'],
['fantasy', 'fantasies'],
['housefly', 'houseflies'],
['falsy', 'falsies'],
['doggy', 'doggies'],
['carny', 'carnies'],
['cabby', 'cabbies'],
['charlie', 'charlies'],
['bookie', 'bookies'],
['auntie', 'aunties'],
// Prototype inheritance.
['constructor', 'constructors'],
// Non-standard case.
Expand Down

0 comments on commit abb3991

Please sign in to comment.