From 3517eefbc83c4fef3d51b9873ae20b57625b8719 Mon Sep 17 00:00:00 2001 From: vdauchy <26772554+vdauchy@users.noreply.github.com> Date: Sat, 29 Jun 2024 16:31:47 +0200 Subject: [PATCH] singular-locaux --- src/Rules/French/Inflectible.php | 2 +- tests/Rules/French/FrenchFunctionalTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Rules/French/Inflectible.php b/src/Rules/French/Inflectible.php index 05b535a..5c0ddf9 100644 --- a/src/Rules/French/Inflectible.php +++ b/src/Rules/French/Inflectible.php @@ -16,7 +16,7 @@ public static function getSingular(): iterable { yield new Transformation(new Pattern('/(b|cor|ém|gemm|soupir|trav|vant|vitr)aux$/'), '\1ail'); yield new Transformation(new Pattern('/ails$/'), 'ail'); - yield new Transformation(new Pattern('/(journ|chev)aux$/'), '\1al'); + yield new Transformation(new Pattern('/(journ|chev|loc)aux$/'), '\1al'); yield new Transformation(new Pattern('/(bijou|caillou|chou|genou|hibou|joujou|pou|au|eu|eau)x$/'), '\1'); yield new Transformation(new Pattern('/s$/'), ''); } diff --git a/tests/Rules/French/FrenchFunctionalTest.php b/tests/Rules/French/FrenchFunctionalTest.php index 84852d4..1f65320 100644 --- a/tests/Rules/French/FrenchFunctionalTest.php +++ b/tests/Rules/French/FrenchFunctionalTest.php @@ -39,6 +39,7 @@ public function dataSampleWords(): array ['pneu', 'pneus'], ['sarrau', 'sarraus'], ['journal', 'journaux'], + ['local', 'locaux'], ['détail', 'détails'], ['bail', 'baux'], ['corail', 'coraux'],