Module:qhv-noun/data: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12: Line 12:
local stem = args[1]
local stem = args[1]
local i = sub(stem, -1) == "i"
local i = sub(stem, -1) == "i"
local stemi = sub(stem, -1, 1)
data.decl_type = "lunar first-declension"
data.decl_type = "lunar first-declension"
table.insert(data.categories, "High Valyrian first-declension nouns")
table.insert(data.categories, "High Valyrian first-declension nouns")
Line 20: Line 21:
data.forms["dat_sg"] = {stem .. "ot"}
data.forms["dat_sg"] = {stem .. "ot"}
data.forms["loc_sg"] = {stem .. "ā"}
data.forms["loc_sg"] = {stem .. "ā"}
data.forms["ins_sg"] = {i and stem .. "ȳsa" or stem .. "osa"}
data.forms["ins_sg"] = {i and stemi .. "ȳsa" or stem .. "osa"}
data.forms["com_sg"] = {i and stem .. "ȳma" or stem .. "oma"}
data.forms["com_sg"] = {i and stemi .. "ȳma" or stem .. "oma"}
data.forms["voc_sg"] = {i and stem .. "ȳs" or stem .. "us"}
data.forms["voc_sg"] = {i and stemi .. "ȳs" or stem .. "us"}


if not args.nopl then
if not args.nopl then
data.forms["nom_pl"] = {i and stem .. "ī" or stem .. "i"}
data.forms["nom_pl"] = {i and stemi .. "ī" or stem .. "i"}
data.forms["acc_pl"] = {stem .. "ī"}
data.forms["acc_pl"] = {stem .. "ī"}
data.forms["gen_pl"] = {i and stem .. "ȳti" or stem .. "oti"}
data.forms["gen_pl"] = {i and stemi .. "ȳti" or stem .. "oti"}
data.forms["dat_pl"] = data.forms["gen_pl"]
data.forms["dat_pl"] = data.forms["gen_pl"]
data.forms["loc_pl"] = data.forms["gen_pl"]
data.forms["loc_pl"] = data.forms["gen_pl"]
data.forms["ins_pl"] = {i and stem .. "ȳssi" or stem .. "ossi"}
data.forms["ins_pl"] = {i and stemi .. "ȳssi" or stem .. "ossi"}
data.forms["com_pl"] = {i and stem .. "ȳmmi" or stem .. "ommi"}
data.forms["com_pl"] = {i and stemi .. "ȳmmi" or stem .. "ommi"}
data.forms["voc_pl"] = {i and stem .. "īs" or stem .. "is"}
data.forms["voc_pl"] = {i and stemi .. "īs" or stem .. "is"}
data.forms["nom_pa"] = {i and stem .. "ȳn" or stem .. "un"}
data.forms["nom_pa"] = {i and stemi .. "ȳn" or stem .. "un"}
data.forms["acc_pa"] = {i and stem .. "ȳni" or stem .. "uni"}
data.forms["acc_pa"] = {i and stemi .. "ȳni" or stem .. "uni"}
data.forms["gen_pa"] = {i and stem .. "ȳno" or stem .. "uno"}
data.forms["gen_pa"] = {i and stemi .. "ȳno" or stem .. "uno"}
data.forms["dat_pa"] = {i and stem .. "ȳnta" or stem .. "unta"}
data.forms["dat_pa"] = {i and stemi .. "ȳnta" or stem .. "unta"}
data.forms["loc_pa"] = {i and stem .. "ȳnna" or stem .. "unna"}
data.forms["loc_pa"] = {i and stemi .. "ȳnna" or stem .. "unna"}
data.forms["ins_pa"] = {i and stem .. "ȳssa" or stem .. "ussa"}
data.forms["ins_pa"] = {i and stemi .. "ȳssa" or stem .. "ussa"}
data.forms["com_pa"] = {i and stem .. "ȳmma" or stem .. "umma"}
data.forms["com_pa"] = {i and stemi .. "ȳmma" or stem .. "umma"}
data.forms["voc_pa"] = data.forms["ins_pa"]
data.forms["voc_pa"] = data.forms["ins_pa"]
Line 477: Line 478:
local stem = args[1]
local stem = args[1]
local i = sub(stem, -1) == "i"
local i = sub(stem, -1) == "i"
local stemi = sub(stem, 1, -1)
data.decl_type = "terrestrial third-declension"
data.decl_type = "terrestrial third-declension"
table.insert(data.categories, "High Valyrian third-declension nouns")
table.insert(data.categories, "High Valyrian third-declension nouns")
Line 485: Line 487:
data.forms["dat_sg"] = {stem .. "ot"}
data.forms["dat_sg"] = {stem .. "ot"}
data.forms["loc_sg"] = data.forms["dat_sg"]
data.forms["loc_sg"] = data.forms["dat_sg"]
data.forms["ins_sg"] = {i and stem .. "ȳso" or stem .. "oso"}
data.forms["ins_sg"] = {i and stemi .. "ȳso" or stem .. "oso"}
data.forms["com_sg"] = data.forms["ins_sg"]
data.forms["com_sg"] = data.forms["ins_sg"]
data.forms["voc_sg"] = {stem .. "os"}
data.forms["voc_sg"] = {stem .. "os"}
Line 492: Line 494:
data.forms["nom_pl"] = {stem .. "a"}
data.forms["nom_pl"] = {stem .. "a"}
data.forms["acc_pl"] = data.forms["nom_pl"]
data.forms["acc_pl"] = data.forms["nom_pl"]
data.forms["gen_pl"] = {i and stem .. "ȳti" or stem .. "oti"}
data.forms["gen_pl"] = {i and stemi .. "ȳti" or stem .. "oti"}
data.forms["dat_pl"] = data.forms["gen_pl"]
data.forms["dat_pl"] = data.forms["gen_pl"]
data.forms["loc_pl"] = data.forms["gen_pl"]
data.forms["loc_pl"] = data.forms["gen_pl"]
data.forms["ins_pl"] = {i and stem .. "ȳssi" or stem .. "ossi"}
data.forms["ins_pl"] = {i and stemi .. "ȳssi" or stem .. "ossi"}
data.forms["com_pl"] = data.forms["ins_pl"]
data.forms["com_pl"] = data.forms["ins_pl"]
data.forms["voc_pl"] = {i and stem .. "īs" or stem .. "as"}
data.forms["voc_pl"] = {i and stemi .. "īs" or stem .. "as"}
data.forms["nom_pa"] = {i and stem .. "ȳn" or stem .. "un"}
data.forms["nom_pa"] = {i and stemi .. "ȳn" or stem .. "un"}
data.forms["acc_pa"] = {i and stem .. "ȳni" or stem .. "uni"}
data.forms["acc_pa"] = {i and stemi .. "ȳni" or stem .. "uni"}
data.forms["gen_pa"] = {i and stem .. "ȳno" or stem .. "uno"}
data.forms["gen_pa"] = {i and stemi .. "ȳno" or stem .. "uno"}
data.forms["dat_pa"] = {i and stem .. "ȳnto" or stem .. "unto"}
data.forms["dat_pa"] = {i and stemi .. "ȳnto" or stem .. "unto"}
data.forms["loc_pa"] = {i and stem .. "ȳnno" or stem .. "unno"}
data.forms["loc_pa"] = {i and stemi .. "ȳnno" or stem .. "unno"}
data.forms["ins_pa"] = {i and stem .. "ȳsso" or stem .. "usso"}
data.forms["ins_pa"] = {i and stemi .. "ȳsso" or stem .. "usso"}
data.forms["com_pa"] = {i and stem .. "ȳmmo" or stem .. "ummo"}
data.forms["com_pa"] = {i and stemi .. "ȳmmo" or stem .. "ummo"}
data.forms["voc_pa"] = data.forms["ins_pa"]
data.forms["voc_pa"] = data.forms["ins_pa"]
data.forms["nom_co"] = {stem .. "or"}
data.forms["nom_co"] = {stem .. "or"}
data.forms["acc_co"] = {i and stem .. "ȳndi" or stem .. "ondi"}
data.forms["acc_co"] = {i and stemi .. "ȳndi" or stem .. "ondi"}
data.forms["gen_co"] = {i and stem .. "ȳndo" or stem .. "ondo"}
data.forms["gen_co"] = {i and stemi .. "ȳndo" or stem .. "ondo"}
data.forms["dat_co"] = data.forms["gen_co"]
data.forms["dat_co"] = data.forms["gen_co"]
data.forms["loc_co"] = {i and stem .. "ȳrro" or stem .. "orro"}
data.forms["loc_co"] = {i and stemi .. "ȳrro" or stem .. "orro"}
data.forms["ins_co"] = {i and stem .. "ȳrzo" or stem .. "orzo"}
data.forms["ins_co"] = {i and stemi .. "ȳrzo" or stem .. "orzo"}
data.forms["com_co"] = {i and stem .. "ȳrmo" or stem .. "ormo"}
data.forms["com_co"] = {i and stemi .. "ȳrmo" or stem .. "ormo"}
data.forms["voc_co"] = data.forms["ins_co"]
data.forms["voc_co"] = data.forms["ins_co"]
end
end