Module:kzw-decl

Hello, you have come here looking for the meaning of the word Module:kzw-decl. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:kzw-decl, but we will also tell you about its etymology, its characteristics and you will know how to say Module:kzw-decl in singular and plural. Everything you need to know about the word Module:kzw-decl you have here. The definition of the word Module:kzw-decl will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:kzw-decl, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}

function export.infl3(frame)
	local w = frame.args
	local decl = frame.args
	local cls = frame.args

    if decl == "1" then
        return "i" .. w
    end

    if decl == "2" then
        return "s" .. w
    end

    if decl == "3" then
        local w3p = w
        if string.sub(w, 1, 1) == "e" then
            w3p = string.sub(w, 2)
        end
        if cls == "verb" then
            return "se" .. w3p .. "//idz" .. w
        else
            return "se" .. w3p
        end
    end

    if decl == "4" then
        return "si" .. w
    end

    if decl == "5" then
        if string.sub(w, 1, 1) == "u" then
            w = string.sub(w, 2)
        end
        return "su" .. w
    end
end

return export