Jump to content

Module:lg-utilities

From Wiktionary, the free dictionary

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local export = {}

function export.plural(frame)
    local word = frame.args[1]
    local sg_class = frame.args[2]
    word = word:gsub("^" .. sg_class .. (sg_class == "m" and "u?" or ""), "")
   
    return word
end

return export