From 9d73b787f6948f7ee7a8757a7a3a85a7e3da5837 Mon Sep 17 00:00:00 2001 From: George Araujo Date: Sun, 7 Aug 2022 17:02:58 -0300 Subject: [PATCH 1/2] Fixed ss in singular noun Signed-off-by: George Araujo --- inflect/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inflect/__init__.py b/inflect/__init__.py index 742b255..b545773 100644 --- a/inflect/__init__.py +++ b/inflect/__init__.py @@ -3420,6 +3420,9 @@ def _sinoun( # noqa: C901 if words.lowered[-3:] == "xes": return word[:-2] + if words.lowered[-2:] == "ss": + return False + # HANDLE ...f -> ...ves if word in si_sb_ves_ve_case or words.last.lower() in si_sb_ves_ve: From f416e6082f01101e071e5be41e49c09987d9d31a Mon Sep 17 00:00:00 2001 From: George Araujo Date: Sun, 7 Aug 2022 17:11:53 -0300 Subject: [PATCH 2/2] Fixed singular_noun for singulars of words that pluralize changing 'is' for 'es' Signed-off-by: George Araujo --- inflect/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inflect/__init__.py b/inflect/__init__.py index b545773..e050e06 100644 --- a/inflect/__init__.py +++ b/inflect/__init__.py @@ -3472,6 +3472,8 @@ def _sinoun( # noqa: C901 if word in si_sb_es_is: return word[:-2] + "is" + elif word[:-2] + "es" in si_sb_es_is: + return False # OTHERWISE JUST REMOVE ...s