Module:qhv-adj/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 10: Line 10:
setmetatable(d["I"], {__call = function(self, args, data)
setmetatable(d["I"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local s = sub(stem, -1) == "s"
local stemr = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or sub(stem, -1) == "j" and stem or stem
local stems = sub(stem, 1, -2) .. "j"
data.decl_type = "I"
data.decl_type = "I"
table.insert(data.categories, "High Valyrian class-I adjectives")
table.insert(data.categories, "High Valyrian class-I adjectives")
Line 49: Line 48:
data.forms["nom_a_sg"] = {stem .. "or"}
data.forms["nom_a_sg"] = {stem .. "or"}
data.forms["acc_a_sg"] = data.forms["nom_a_sg"]
data.forms["acc_a_sg"] = data.forms["nom_a_sg"]
data.forms["gen_a_sg"] = {s and stems .. "o" or stem .. "ro"}
data.forms["gen_a_sg"] = {stemr .. "o" or stem .. "ro"}
data.forms["dat_a_sg"] = {s and stems .. "o" or stem .. "ro", s and stems .. "ot" or stem .. "rot"}
data.forms["dat_a_sg"] = {stemr .. "o" or stem .. "ro", stemr .. "ot" or stem .. "rot"}
data.forms["loc_a_sg"] = data.forms["dat_a_sg"]
data.forms["loc_a_sg"] = data.forms["dat_a_sg"]
data.forms["ins_a_sg"] = {s and stems .. "os" or stem .. "ros"}
data.forms["ins_a_sg"] = {stemr .. "os" or stem .. "ros"}
data.forms["com_a_sg"] = {s and stems .. "on" or stem .. "ron", s and stems .. "om" or stem .. "rom"}
data.forms["com_a_sg"] = {stemr .. "on" or stem .. "ron", stemr .. "om" or stem .. "rom"}
data.forms["voc_a_sg"] = {stem .. "os"}
data.forms["voc_a_sg"] = {stem .. "os"}
Line 83: Line 82:
data.forms["voc_t_pl"] = {stem .. "as"}
data.forms["voc_t_pl"] = {stem .. "as"}
data.forms["nom_a_pl"] = {s and stems .. "a" or stem .. "ra"}
data.forms["nom_a_pl"] = {stemr .. "a" or stem .. "ra"}
data.forms["acc_a_pl"] = data.forms["nom_a_pl"]
data.forms["acc_a_pl"] = data.forms["nom_a_pl"]
data.forms["gen_a_pl"] = {s and stems .. "o" or stem .. "ro", s and stems .. "ot" or stem .. "rot"}
data.forms["gen_a_pl"] = {stemr .. "o" or stem .. "ro", stemr .. "ot" or stem .. "rot"}
data.forms["dat_a_pl"] = data.forms["gen_a_pl"]
data.forms["dat_a_pl"] = data.forms["gen_a_pl"]
data.forms["loc_a_pl"] = data.forms["gen_a_pl"]
data.forms["loc_a_pl"] = data.forms["gen_a_pl"]
data.forms["ins_a_pl"] = {s and stems .. "os" or stem .. "ros"}
data.forms["ins_a_pl"] = {stemr .. "os" or stem .. "ros"}
data.forms["com_a_pl"] = {s and stems .. "on" or stem .. "ron", s and stems .. "om" or stem.. "rom"}
data.forms["com_a_pl"] = {stemr .. "on" or stem .. "ron", stemr .. "om" or stem.. "rom"}
data.forms["voc_a_pl"] = {stem .. "as"}
data.forms["voc_a_pl"] = {stem .. "as"}


Line 122: Line 121:
data.forms["post_nom_a_sg"] = {stem .. "or"}
data.forms["post_nom_a_sg"] = {stem .. "or"}
data.forms["post_acc_a_sg"] = data.forms["post_nom_a_sg"]
data.forms["post_acc_a_sg"] = data.forms["post_nom_a_sg"]
data.forms["post_gen_a_sg"] = {s and stems .. "o" or stem .. "ro"}
data.forms["post_gen_a_sg"] = {stemr .. "o" or stem .. "ro"}
data.forms["post_dat_a_sg"] = {s and stems .. "ot" or stem .. "rot"}
data.forms["post_dat_a_sg"] = {stemr .. "ot" or stem .. "rot"}
data.forms["post_loc_a_sg"] = data.forms["post_dat_a_sg"]
data.forms["post_loc_a_sg"] = data.forms["post_dat_a_sg"]
data.forms["post_ins_a_sg"] = {s and stems .. "oso" or stem .. "roso"}
data.forms["post_ins_a_sg"] = {stemr .. "oso" or stem .. "roso"}
data.forms["post_com_a_sg"] = {s and stems .. "omo" or stem .. "romo"}
data.forms["post_com_a_sg"] = {stemr .. "omo" or stem .. "romo"}
data.forms["post_voc_a_sg"] = {stem .. "os"}
data.forms["post_voc_a_sg"] = {stem .. "os"}


Line 156: Line 155:
data.forms["post_voc_t_pl"] = {stem .. "as"}
data.forms["post_voc_t_pl"] = {stem .. "as"}
data.forms["post_nom_a_pl"] = {s and stems .. "a" or stem .. "ra"}
data.forms["post_nom_a_pl"] = {stemr .. "a" or stem .. "ra"}
data.forms["post_acc_a_pl"] = data.forms["post_nom_a_pl"]
data.forms["post_acc_a_pl"] = data.forms["post_nom_a_pl"]
data.forms["post_gen_a_pl"] = {s and stems .. "oti" or stem .. "roti"}
data.forms["post_gen_a_pl"] = {stemr .. "oti" or stem .. "roti"}
data.forms["post_dat_a_pl"] = data.forms["post_gen_a_pl"]
data.forms["post_dat_a_pl"] = data.forms["post_gen_a_pl"]
data.forms["post_loc_a_pl"] = data.forms["post_gen_a_pl"]
data.forms["post_loc_a_pl"] = data.forms["post_gen_a_pl"]
data.forms["post_ins_a_pl"] = {s and stems .. "ossi" or stem .. "rossi"}
data.forms["post_ins_a_pl"] = {stemr .. "ossi" or stem .. "rossi"}
data.forms["post_com_a_pl"] = {s and stems .. "ommi" or stem .. "rommi"}
data.forms["post_com_a_pl"] = {stemr .. "ommi" or stem .. "rommi"}
data.forms["post_voc_a_pl"] = {stem .. "as"}
data.forms["post_voc_a_pl"] = {stem .. "as"}
end
end

Navigation menu