From 5007e8fcf99da2bf85be7ce491ebe967bce738aa Mon Sep 17 00:00:00 2001 From: Seris02 <49109742+Seris02@users.noreply.github.com> Date: Wed, 24 Nov 2021 01:19:37 +0800 Subject: [PATCH] better logic for plural_s() (#62776) makes it so that plural_s() actually follows most english rules which is good even though the proc is never used with this it might actually become useful (i have plans) --- code/__HELPERS/pronouns.dm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/code/__HELPERS/pronouns.dm b/code/__HELPERS/pronouns.dm index a43a974a7b4..e6c39ed7df8 100644 --- a/code/__HELPERS/pronouns.dm +++ b/code/__HELPERS/pronouns.dm @@ -40,13 +40,19 @@ . = "es" /datum/proc/plural_s(pluralize) - switch(copytext_char(pluralize, -1)) - if ("s") + switch(copytext_char(pluralize, -2)) + if ("ss") . = "es" - if ("x") + if ("sh") + . = "es" + if ("ch") . = "es" else - . = "s" + switch(copytext_char(pluralize, -1)) + if("s", "x", "z") + . = "es" + else + . = "s" //like clients, which do have gender. /client/p_they(capitalized, temp_gender)