File tree Expand file tree Collapse file tree
lib/Doctrine/Inflector/Rules/English
tests/Doctrine/Tests/Inflector/Rules/English Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static function getSingular(): iterable
4747 yield new Transformation (new Pattern ('(analy|diagno|^ba|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$ ' ), '\1\2sis ' );
4848 yield new Transformation (new Pattern ('(tax)a$ ' ), '\1on ' );
4949 yield new Transformation (new Pattern ('(c)riteria$ ' ), '\1riterion ' );
50- yield new Transformation (new Pattern ('([ti])a$ ' ), '\1um ' );
50+ yield new Transformation (new Pattern ('([ti])a(?<!regatta) $ ' ), '\1um ' );
5151 yield new Transformation (new Pattern ('(p)eople$ ' ), '\1\2erson ' );
5252 yield new Transformation (new Pattern ('(m)en$ ' ), '\1an ' );
5353 yield new Transformation (new Pattern ('(c)hildren$ ' ), '\1\2hild ' );
Original file line number Diff line number Diff line change @@ -233,9 +233,11 @@ public function dataSampleWords(): array
233233 ['old_news ' , 'old_news ' ],
234234 ['olive ' , 'olives ' ],
235235 ['ox ' , 'oxen ' ],
236+ ['pactum ' , 'pacta ' ],
236237 ['pants ' , 'pants ' ],
237238 ['pass ' , 'passes ' ],
238239 ['passerby ' , 'passersby ' ],
240+ ['pasta ' , 'pastas ' ],
239241 ['patience ' , 'patience ' ],
240242 ['pekingese ' , 'pekingese ' ],
241243 ['person ' , 'people ' ],
@@ -264,6 +266,7 @@ public function dataSampleWords(): array
264266 ['radius ' , 'radii ' ],
265267 ['rain ' , 'rain ' ],
266268 ['reflex ' , 'reflexes ' ],
269+ ['regatta ' , 'regattas ' ],
267270 ['research ' , 'research ' ],
268271 ['rhinoceros ' , 'rhinoceros ' ],
269272 ['rice ' , 'rice ' ],
@@ -314,6 +317,7 @@ public function dataSampleWords(): array
314317 ['stimulus ' , 'stimuli ' ],
315318 ['stitch ' , 'stitches ' ],
316319 ['story ' , 'stories ' ],
320+ ['stratum ' , 'strata ' ],
317321 ['sugar ' , 'sugar ' ],
318322 ['swine ' , 'swine ' ],
319323 ['switch ' , 'switches ' ],
@@ -387,8 +391,13 @@ public function dataSingularsUninflectedWhenSingularized(): array
387391 ['utopia ' , 'utopium ' ],
388392 ['sepia ' , 'sepium ' ],
389393 ['mafia ' , 'mafium ' ],
394+ ['regatta ' , 'regattum ' ],
395+ ['regattas ' , 'regattum ' ],
396+ ['pactum ' , 'pactums ' ],
390397 ['fascia ' , 'fascium ' ],
391398 ['status ' , 'statu ' ],
399+ ['stratum ' , 'strati ' ],
400+ ['stratum ' , 'stratums ' ],
392401 ['campus ' , 'campu ' ],
393402 ['axis ' , 'axes ' ],
394403 ];
You can’t perform that action at this time.
0 commit comments