@@ -70,6 +70,15 @@ final class Inflector
70
70
// movies (movie)
71
71
array ('seivom ' , 6 , true , true , 'movie ' ),
72
72
73
+ // feet (foot)
74
+ array ('teef ' , 4 , true , true , 'foot ' ),
75
+
76
+ // geese (goose)
77
+ array ('eseeg ' , 5 , true , true , 'goose ' ),
78
+
79
+ // teeth (tooth)
80
+ array ('hteet ' , 5 , true , true , 'tooth ' ),
81
+
73
82
// news (news)
74
83
array ('swen ' , 4 , true , true , 'news ' ),
75
84
@@ -130,17 +139,6 @@ final class Inflector
130
139
array ('elpoep ' , 6 , true , true , 'person ' ),
131
140
);
132
141
133
- /**
134
- * Irregular nouns which will not be converted 'ee' to 'oo'
135
- *
136
- * @var array
137
- */
138
- private static $ irregularNouns = array (
139
- 'committee ' => 'committee ' ,
140
- 'feedback ' => 'feedback ' ,
141
- 'screenshots ' => 'screenshot ' ,
142
- );
143
-
144
142
/**
145
143
* This class should not be instantiated.
146
144
*/
@@ -228,11 +226,6 @@ public static function singularize($plural)
228
226
}
229
227
}
230
228
231
- // Convert teeth to tooth, feet to foot
232
- if (false !== ($ pos = strpos ($ plural , 'ee ' )) && strlen ($ plural ) > 3 && !isset (self ::$ irregularNouns [strtolower ($ plural )])) {
233
- return substr_replace ($ plural , 'oo ' , $ pos , 2 );
234
- }
235
-
236
229
// Assume that plural and singular is identical
237
230
return $ plural ;
238
231
}
0 commit comments