Module:Grammar/Conjugate: Difference between revisions

fix pluralization of -ey words
m (add do to irregular verb)
(fix pluralization of -ey words)
Line 10: Line 10:
elseif (str:sub(-1) == 's') then
elseif (str:sub(-1) == 's') then
return (str .. apostrophe)  --return unmodified (ends with 's', like 'boots', so we shouldn't append another 's')
return (str .. apostrophe)  --return unmodified (ends with 's', like 'boots', so we shouldn't append another 's')
elseif (string.sub(str, -2) == 'ey') and apostrophe == '' then
    return (str .. 's')  --for example, "lamprey"
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')