[MIRROR] better logic for plural_s() [MDB IGNORE] (#9660)

* 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)

* better logic for plural_s()

Co-authored-by: Seris02 <49109742+Seris02@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-11-23 13:28:38 -05:00
committed by GitHub
co-authored by Seris02
parent 9c08bcb01a
commit 145fe9dae2
+10 -4
View File
@@ -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)