8,290
edits
(fix pluralization of -ey words) |
(special pluralization case for "vortex") |
||
Line 15: | Line 15: | ||
return (string.sub(str, 1, -2) .. 'ies') | return (string.sub(str, 1, -2) .. 'ies') | ||
elseif (str:sub(-1) == 'z' or str:sub(-2) == 'ch' or str:sub(-2) == 'sh' or str:sub(-1) == 'x') and apostrophe == '' then | elseif (str:sub(-1) == 'z' or str:sub(-2) == 'ch' or str:sub(-2) == 'sh' or str:sub(-1) == 'x') and apostrophe == '' then | ||
if (str:sub(-6) == 'vortex') then --special case, capitalize vortex the same way the game does in in-game text like Quantum Jitters description | |||
return (string.sub(str, 1, -3) .. 'ices') | |||
end | |||
return (str .. 'es') | return (str .. 'es') | ||
else | else |