Jump to content

Module:ka-adj

From Wiktionary, the free dictionary

This module is going to be deleted.
Module:ka-adj is deprecated or has failed Wiktionary:Requests for deletion/Others.

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