improve pluralization on some words ending with a k-sound

fixes #245
This commit is contained in:
nhmall
2019-11-16 08:27:07 -05:00
parent 8a7169eda9
commit 8b1c6148f6
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -232,6 +232,7 @@ dipping into an undiscovered potion would offer chance to give a name to the
potion even when its description wasn't known (picked up while blind) potion even when its description wasn't known (picked up while blind)
dipping lichen corpse into acid when not blind and acid was undicovered would dipping lichen corpse into acid when not blind and acid was undicovered would
not offer a chance to give a name to the potion after lichen feedback not offer a chance to give a name to the potion after lichen feedback
pluralization improvement for words ending in a k-sound like "biotech"
Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository
+4 -1
View File
@@ -2435,7 +2435,10 @@ const char *oldstr;
/* Ends in z, x, s, ch, sh; add an "es" */ /* Ends in z, x, s, ch, sh; add an "es" */
if (index("zxs", lo_c) if (index("zxs", lo_c)
|| (len >= 2 && lo_c == 'h' && index("cs", lowc(*(spot - 1)))) || (len >= 2 && lo_c == 'h' && index("cs", lowc(*(spot - 1)))
/* 21st century k-sound */
&& !(len >= 4 && !strcmpi(spot - 2, "ech")
&& index("tm", lowc(*(spot - 4)))))
/* Kludge to get "tomatoes" and "potatoes" right */ /* Kludge to get "tomatoes" and "potatoes" right */
|| (len >= 4 && !strcmpi(spot - 2, "ato")) || (len >= 4 && !strcmpi(spot - 2, "ato"))
|| (len >= 5 && !strcmpi(spot - 4, "dingo"))) { || (len >= 5 && !strcmpi(spot - 4, "dingo"))) {