From 1ad66b2f65a143283a48bfef6ebc5a634ad781fb Mon Sep 17 00:00:00 2001 From: Eric Blankfield Date: Tue, 13 Feb 2024 10:28:42 -0800 Subject: [PATCH] Singularize regattas to regatta. Test a few similar words. --- lib/Doctrine/Inflector/Rules/English/Inflectible.php | 2 +- .../Inflector/Rules/English/EnglishFunctionalTest.php | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Inflector/Rules/English/Inflectible.php b/lib/Doctrine/Inflector/Rules/English/Inflectible.php index 04b6d00..8bf02a2 100644 --- a/lib/Doctrine/Inflector/Rules/English/Inflectible.php +++ b/lib/Doctrine/Inflector/Rules/English/Inflectible.php @@ -47,7 +47,7 @@ public static function getSingular(): iterable yield new Transformation(new Pattern('(analy|diagno|^ba|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$'), '\1\2sis'); yield new Transformation(new Pattern('(tax)a$'), '\1on'); yield new Transformation(new Pattern('(c)riteria$'), '\1riterion'); - yield new Transformation(new Pattern('([ti])a$'), '\1um'); + yield new Transformation(new Pattern('([ti])a(?