ข้ามไปเนื้อหา

มอดูล:ka-adj

จาก วิกิพจนานุกรม พจนานุกรมเสรี

local export = {}

function export.retErgative(arguments)
    word = arguments.args[1]
    stem = arguments.args[1]
    if mw.ustring.sub(word, -1) == [[ი]] then
        stem = mw.ustring.sub(word, 0, -2).."მა"
    end
    return stem
end

function export.retDative(arguments)
    word = arguments.args[1]
    stem = arguments.args[1]
    if mw.ustring.sub(word, -1) == [[ი]] then
        stem = mw.ustring.sub(word, 0, -2)
    end
    return stem
end

function export.retVocative(arguments)
    word = arguments.args[1]
    stem = arguments.args[1]
    if mw.ustring.sub(word, -1) == [[ი]] then
        stem = mw.ustring.sub(word, 0, -2).."ო"
    end
    return stem
end

return export