Skip to content

Commit

Permalink
Merge pull request #13 from justin-schroeder/master
Browse files Browse the repository at this point in the history
Adds support for more english plural "oes" words
  • Loading branch information
olvlvl authored Jul 2, 2016
2 parents 95cacb9 + a01f479 commit 94ce86a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inflections/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
->plural('/^(ax|test)is$/i', '\1es')
->plural('/(alias|status)$/i', '\1es')
->plural('/(bu)s$/i', '\1ses')
->plural('/(buffal|tomat)o$/i', '\1oes')
->plural('/(buffal|tomat|potat|volcan|her)o$/i', '\1oes')
->plural('/([ti])um$/i', '\1a')
->plural('/([ti])a$/i', '\1a')
->plural('/sis$/i', 'ses')
Expand Down
3 changes: 3 additions & 0 deletions tests/cases/singular_to_plural.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
"photo" => "photos",
"buffalo" => "buffaloes",
"tomato" => "tomatoes",
"potato" => "potatoes",
"volcano" => "volcanoes",
"hero" => "heroes",
"dwarf" => "dwarves",
"elf" => "elves",
"information" => "information",
Expand Down

0 comments on commit 94ce86a

Please sign in to comment.