Module:ka-adj

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
The following documentation is located at Module:ka-adj/documentation. [edit]
Text-x-generic with pencil.svg This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local export = {}
 
function export.kaAdjDecl()
    return '<div class="NavFrame" style="width:50%"><div class="NavHead" style="" >Appendix:Georgian adjectives#adjectival declension|Adjectival declension of {{{1}}}ი</div><div class="NavContent">{| border="1px solid #505050" style="border-collapse:collapse; background:#FAFAFA; text-align:center; width:100%" class="inflection-table"|-! style="background:#BBC9D0;width:50%" | Case! style="background:#BBC9D0" | adjective|-! style="background:#BBC9D0" | nominative, genitive and instrumental| {{Geor|{{{1}}}ი}} ({{{2}}}i)|-! style="background:#BBC9D0" | ergative| {{Geor|{{{1}}}მა}} ({{{2}}}ma)|-! style="background:#BBC9D0" | dative and adverbial| {{Geor|{{{1}}}}} ({{{2}}})|-! style="background:#BBC9D0" | vocative| {{Geor|{{{1}}}ო}} ({{{2}}}o)|}</div></div>'
end
 
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