Module:Grammar/Conjugate: Difference between revisions
Jump to navigation
Jump to search
(improved pluralization for things with "of" in the name (drops of nectar, clumps of grave moss, knight commanders of the holy temple, etc)) |
(correctly pluralize knife (e.g. "steel butcher knife")) |
||
Line 15: | Line 15: | ||
elseif (string.sub(str, -1) == 'y') and apostrophe == '' then | elseif (string.sub(str, -1) == 'y') and apostrophe == '' then | ||
return (string.sub(str, 1, -2) .. 'ies') | return (string.sub(str, 1, -2) .. 'ies') | ||
elseif (string.sub(str, -3) == 'ife') and apostrophe == '' then | |||
return (string.sub(str, 1, -4) .. 'ives') | |||
elseif (string.find(str, ' of ')) then | elseif (string.find(str, ' of ')) then | ||
i = string.find(str, ' of ') | i = string.find(str, ' of ') |