From 232ce6dc6d354dc7dc33fe855563637d38c537a5 Mon Sep 17 00:00:00 2001 From: vdauchy <26772554+vdauchy@users.noreply.github.com> Date: Sat, 29 Jun 2024 16:13:46 +0200 Subject: [PATCH] Correct singularization of mas --- src/Rules/French/Uninflected.php | 1 + tests/Rules/French/FrenchFunctionalTest.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Rules/French/Uninflected.php b/src/Rules/French/Uninflected.php index d3bf385..1c2b99a 100644 --- a/src/Rules/French/Uninflected.php +++ b/src/Rules/French/Uninflected.php @@ -14,6 +14,7 @@ public static function getSingular(): iterable yield from self::getDefault(); yield new Pattern('bois'); + yield new Pattern('mas'); } /** @return Pattern[] */ diff --git a/tests/Rules/French/FrenchFunctionalTest.php b/tests/Rules/French/FrenchFunctionalTest.php index 84852d4..5f4e854 100644 --- a/tests/Rules/French/FrenchFunctionalTest.php +++ b/tests/Rules/French/FrenchFunctionalTest.php @@ -56,6 +56,7 @@ public function dataSampleWords(): array ['festival', 'festivals'], ['récital', 'récitals'], ['bois', 'bois'], + ['mas', 'mas'], ]; }