Module:HTMLParse: Difference between revisions

179 bytes added ,  16:42, 8 September 2019
pluralized stuff that ends in h,z,or x will have 'es' appended instead of 's'
mNo edit summary
(pluralized stuff that ends in h,z,or x will have 'es' appended instead of 's')
Line 14: Line 14:
     elseif (string.sub(prefix, -1) == 'y') and apostrophe == '' then
     elseif (string.sub(prefix, -1) == 'y') and apostrophe == '' then
         return (string.sub(prefix, 1, -2) ..  'ies' .. postfix)
         return (string.sub(prefix, 1, -2) ..  'ies' .. postfix)
    elseif (string.sub(prefix, -1) == 'z' or string.sub(prefix, -1) == 'h' or string.sub(prefix, -1) == 'x') and apostrophe == '' then
        return (prefix ..  'es' .. postfix)
     else
     else
         return (prefix .. apostrophe .. 's' .. postfix)
         return (prefix .. apostrophe .. 's' .. postfix)