From 1cdf4cf5243bd1cb5ca50ff03ff595cb436ce5b7 Mon Sep 17 00:00:00 2001 From: Vladislav Iurciuc Date: Wed, 17 Jan 2024 18:31:51 +0200 Subject: [PATCH 1/2] [String] Correct inflection of axis --- Inflector/EnglishInflector.php | 3 +++ Tests/Inflector/EnglishInflectorTest.php | 1 + 2 files changed, 4 insertions(+) diff --git a/Inflector/EnglishInflector.php b/Inflector/EnglishInflector.php index e1bcd87..14578cf 100644 --- a/Inflector/EnglishInflector.php +++ b/Inflector/EnglishInflector.php @@ -166,6 +166,9 @@ final class EnglishInflector implements InflectorInterface // Fourth entry: Whether the suffix may succeed a consonant // Fifth entry: plural suffix, normal + // axes (axis) + ['sixa', 4, false, false, 'axes'], + // criterion (criteria) ['airetirc', 8, false, false, 'criterion'], diff --git a/Tests/Inflector/EnglishInflectorTest.php b/Tests/Inflector/EnglishInflectorTest.php index cf66bf0..530c5fb 100644 --- a/Tests/Inflector/EnglishInflectorTest.php +++ b/Tests/Inflector/EnglishInflectorTest.php @@ -185,6 +185,7 @@ public static function pluralizeProvider() ['arch', 'arches'], ['atlas', 'atlases'], ['axe', 'axes'], + ['axis', 'axes'], ['baby', 'babies'], ['bacterium', 'bacteria'], ['base', 'bases'], From aea0cc80be4ef21bda64210d466106a3b0f40eba Mon Sep 17 00:00:00 2001 From: Renan Date: Thu, 18 Jan 2024 22:39:54 +0100 Subject: [PATCH 2/2] fix aircraft inflection --- Inflector/EnglishInflector.php | 3 +++ Tests/Inflector/EnglishInflectorTest.php | 1 + 2 files changed, 4 insertions(+) diff --git a/Inflector/EnglishInflector.php b/Inflector/EnglishInflector.php index 14578cf..30b18a3 100644 --- a/Inflector/EnglishInflector.php +++ b/Inflector/EnglishInflector.php @@ -387,6 +387,9 @@ final class EnglishInflector implements InflectorInterface // traffic 'ciffart', + + // aircraft + 'tfarcria', ]; /** diff --git a/Tests/Inflector/EnglishInflectorTest.php b/Tests/Inflector/EnglishInflectorTest.php index 530c5fb..3785922 100644 --- a/Tests/Inflector/EnglishInflectorTest.php +++ b/Tests/Inflector/EnglishInflectorTest.php @@ -178,6 +178,7 @@ public static function pluralizeProvider() ['access', 'accesses'], ['address', 'addresses'], ['agenda', 'agendas'], + ['aircraft', 'aircraft'], ['alumnus', 'alumni'], ['analysis', 'analyses'], ['antenna', 'antennas'], // antennae