8,756
edits
mNo edit summary |
(moved possessive/pluralize logic to its own module) |
||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
local conjugate = require'Module:Grammar/Conjugate' | |||
function p.pluralize(frame, apostrophe) | function p.pluralize(frame, apostrophe) | ||
Line 10: | Line 11: | ||
if (prefix == nil or prefix == '' or postfix == nil or postfix == '') then | if (prefix == nil or prefix == '' or postfix == nil or postfix == '') then | ||
return htmlString --return unmodified string (couldn't find alpha character followed by closing HTML tag) | return htmlString --return unmodified string (couldn't find alpha character followed by closing HTML tag) | ||
else | else | ||
return (conjugate.pluralize(prefix, apostrophe) .. postfix) | |||
end | end | ||
end | end |