Module:Grammar/Conjugate: Difference between revisions

Jump to navigation Jump to search
properly pluralize phrases including "with", such as "meteorite wall with periodot deposits"
(correctly pluralize knife (e.g. "steel butcher knife"))
(properly pluralize phrases including "with", such as "meteorite wall with periodot deposits")
Line 19: Line 19:
     elseif (string.find(str, ' of ')) then
     elseif (string.find(str, ' of ')) then
         i = string.find(str, ' of ')
         i = string.find(str, ' of ')
        return p.pluralize(string.sub(str, 1, i-1)) .. string.sub(str, i)
    elseif (string.find(str, ' with ')) then
        i = string.find(str, ' with ')
         return p.pluralize(string.sub(str, 1, i-1)) .. string.sub(str, i)
         return p.pluralize(string.sub(str, 1, i-1)) .. string.sub(str, i)
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

Navigation menu