Module:qhv-adj/data: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 174: Line 174:
setmetatable(d["II"], {__call = function(self, args, data)
setmetatable(d["II"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
local ny, stemny = sub(stem, -1) == "ñ", sub(stem, 1, -2) .. "n"
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stemny
data.decl_type = "II"
data.decl_type = "II"
table.insert(data.categories, "High Valyrian class-II adjectives")
table.insert(data.categories, "High Valyrian class-II adjectives")


data.forms["eq"] = {stemm .. "pa"}
data.forms["eq"] = {stemm .. "pa"}
data.forms["comp"] = {stem .. "kta"}
data.forms["comp"] = {stemny .. "kta"}
data.forms["sup"] = {stem .. "je"}
data.forms["sup"] = {stemny .. "je"}
data.forms["nom_l_sg"] = {stem .. "e"}
data.forms["nom_l_sg"] = {stem .. "e"}
Line 191: Line 192:
data.forms["voc_l_sg"] = {stem .. "es"}
data.forms["voc_l_sg"] = {stem .. "es"}
data.forms["nom_t_sg"] = {stem .. "ior"}
data.forms["nom_t_sg"] = {stem .. (ny and "or" or "ior")}
data.forms["acc_t_sg"] = data.forms["nom_t_sg"]
data.forms["acc_t_sg"] = data.forms["nom_t_sg"]
data.forms["gen_t_sg"] = {stem .. "ȳr"}
data.forms["gen_t_sg"] = {stem .. "ȳr"}
Line 198: Line 199:
data.forms["ins_t_sg"] = {stem .. "ȳs"}
data.forms["ins_t_sg"] = {stem .. "ȳs"}
data.forms["com_t_sg"] = {stem .. "ȳn", stem .. "ȳm"}
data.forms["com_t_sg"] = {stem .. "ȳn", stem .. "ȳm"}
data.forms["voc_t_sg"] = {stem .. "ios"}
data.forms["voc_t_sg"] = {stem .. (ny and "os" or "ios")}
data.forms["nom_l_pl"] = {stem .. "i"}
data.forms["nom_l_pl"] = {stem .. "i"}
Line 209: Line 210:
data.forms["voc_l_pl"] = {stem .. "is"}
data.forms["voc_l_pl"] = {stem .. "is"}
data.forms["nom_t_pl"] = {stem .. "iar"}
data.forms["nom_t_pl"] = {stem .. (ny and "ar" or "iar")}
data.forms["acc_t_pl"] = data.forms["nom_t_pl"]
data.forms["acc_t_pl"] = data.forms["nom_t_pl"]
data.forms["gen_t_pl"] = {stem .. "ȳ", stem .. "ȳt"}
data.forms["gen_t_pl"] = {stem .. "ȳ", stem .. "ȳt"}
Line 228: Line 229:
data.forms["post_voc_l_sg"] = {stem .. "es"}
data.forms["post_voc_l_sg"] = {stem .. "es"}
data.forms["post_nom_t_sg"] = {stem .. "ior"}
data.forms["post_nom_t_sg"] = {stem .. (ny and "or" or "ior")}
data.forms["post_acc_t_sg"] = data.forms["post_nom_t_sg"]
data.forms["post_acc_t_sg"] = data.forms["post_nom_t_sg"]
data.forms["post_gen_t_sg"] = {stem .. "ȳro"}
data.forms["post_gen_t_sg"] = {stem .. "ȳro"}
Line 235: Line 236:
data.forms["post_ins_t_sg"] = {stem .. "ȳso"}
data.forms["post_ins_t_sg"] = {stem .. "ȳso"}
data.forms["post_com_t_sg"] = {stem .. "ȳmo"}
data.forms["post_com_t_sg"] = {stem .. "ȳmo"}
data.forms["post_voc_t_sg"] = {stem .. "ios"}
data.forms["post_voc_t_sg"] = {stem .. (ny and "os" or "ios")}
data.forms["post_nom_l_pl"] = {stem .. "i"}
data.forms["post_nom_l_pl"] = {stem .. "i"}
Line 246: Line 247:
data.forms["post_voc_l_pl"] = {stem .. "is"}
data.forms["post_voc_l_pl"] = {stem .. "is"}
data.forms["post_nom_t_pl"] = {stem .. "iar"}
data.forms["post_nom_t_pl"] = {stem .. (ny and "ar" or "iar")}
data.forms["post_acc_t_pl"] = data.forms["post_nom_t_pl"]
data.forms["post_acc_t_pl"] = data.forms["post_nom_t_pl"]
data.forms["post_gen_t_pl"] = {stem .. "ȳti"}
data.forms["post_gen_t_pl"] = {stem .. "ȳti"}