From 1cb77ebf2c46baedf1737d1d828af3b83249b37b Mon Sep 17 00:00:00 2001 From: vdauchy <26772554+vdauchy@users.noreply.github.com> Date: Sat, 22 Jun 2024 10:56:59 +0200 Subject: [PATCH] Correct singularization of bois --- src/Rules/French/Uninflected.php | 2 ++ tests/Rules/French/FrenchFunctionalTest.php | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Rules/French/Uninflected.php b/src/Rules/French/Uninflected.php index 9747f91..d3bf385 100644 --- a/src/Rules/French/Uninflected.php +++ b/src/Rules/French/Uninflected.php @@ -12,6 +12,8 @@ final class Uninflected public static function getSingular(): iterable { yield from self::getDefault(); + + yield new Pattern('bois'); } /** @return Pattern[] */ diff --git a/tests/Rules/French/FrenchFunctionalTest.php b/tests/Rules/French/FrenchFunctionalTest.php index ece7174..84852d4 100644 --- a/tests/Rules/French/FrenchFunctionalTest.php +++ b/tests/Rules/French/FrenchFunctionalTest.php @@ -55,6 +55,7 @@ public function dataSampleWords(): array ['carnaval', 'carnavals'], ['festival', 'festivals'], ['récital', 'récitals'], + ['bois', 'bois'], ]; }