Module:qhv-noun/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 833: Line 833:
setmetatable(alldata["5-a"], {__call = function(self, args, data)
setmetatable(alldata["5-a"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local z = sub(stem, -1) == "z"
local z = sub(stem, -2) == "rz"
local stemz = sub(stem, 1, -3)
data.decl_type = "aquatic fifth-declension"
data.decl_type = "aquatic fifth-declension"
table.insert(data.categories, "High Valyrian fifth-declension nouns")
table.insert(data.categories, "High Valyrian fifth-declension nouns")
Line 839: Line 840:
data.forms["nom_sg"] = {stem .. "ir"}
data.forms["nom_sg"] = {stem .. "ir"}
data.forms["acc_sg"] = data.forms["nom_sg"]
data.forms["acc_sg"] = data.forms["nom_sg"]
data.forms["gen_sg"] = {z and stem .. "rjio" or stem .. "rio"}
data.forms["gen_sg"] = {z and stemz .. "rjio" or stem .. "rio"}
data.forms["dat_sg"] = {z and stem .. "rjiot" or stem .. "riot"}
data.forms["dat_sg"] = {z and stemz .. "rjiot" or stem .. "riot"}
data.forms["loc_sg"] = {stem .. "īr"}
data.forms["loc_sg"] = {stem .. "īr"}
data.forms["ins_sg"] = {z and stem .. "rjȳsi" or stem .. "ȳsi"}
data.forms["ins_sg"] = {z and stemz .. "rjȳsi" or stem .. "ȳsi"}
data.forms["com_sg"] = {z and stem .. "rjȳmi" or stem .. "ȳmi"}
data.forms["com_sg"] = {z and stemz .. "rjȳmi" or stem .. "ȳmi"}
data.forms["voc_sg"] = {stem .. "ys"}
data.forms["voc_sg"] = {stem .. "ys"}


if not args.nopl then
if not args.nopl then
data.forms["nom_pl"] = {z and stem .. "rja" or stem .. "ra"}
data.forms["nom_pl"] = {z and stemz .. "rja" or stem .. "ra"}
data.forms["acc_pl"] = data.forms["nom_pl"]
data.forms["acc_pl"] = data.forms["nom_pl"]
data.forms["gen_pl"] = {z and stem .. "rjȳti" or stem .. "rȳti"}
data.forms["gen_pl"] = {z and stemz .. "rjȳti" or stem .. "rȳti"}
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"] = {z and stem .. "rjȳssi" or stem .. "rȳssi"}
data.forms["ins_pl"] = {z and stemz .. "rjȳssi" or stem .. "rȳssi"}
data.forms["com_pl"] = {z and stem .. "rjȳmmi" or stem .. "rȳmmi"}
data.forms["com_pl"] = {z and stemz .. "rjȳmmi" or stem .. "rȳmmi"}
data.forms["voc_pl"] = {stem .. "as"}
data.forms["voc_pl"] = {stem .. "as"}
data.forms["nom_pa"] = {z and stem .. "rjin" or stem .. "rin"}
data.forms["nom_pa"] = {z and stemz .. "rjin" or stem .. "rin"}
data.forms["acc_pa"] = {z and stem .. "rjini" or stem .. "rini"}
data.forms["acc_pa"] = {z and stemz .. "rjini" or stem .. "rini"}
data.forms["gen_pa"] = {z and stem .. "rjino" or stem .. "rino"}
data.forms["gen_pa"] = {z and stemz .. "rjino" or stem .. "rino"}
data.forms["dat_pa"] = {z and stem .. "rjinti" or stem .. "rinti"}
data.forms["dat_pa"] = {z and stemz .. "rjinti" or stem .. "rinti"}
data.forms["loc_pa"] = {z and stem .. "rjinni" or stem .. "rinni"}
data.forms["loc_pa"] = {z and stemz .. "rjinni" or stem .. "rinni"}
data.forms["ins_pa"] = {z and stem .. "rjissi" or stem .. "rissi"}
data.forms["ins_pa"] = {z and stemz .. "rjissi" or stem .. "rissi"}
data.forms["com_pa"] = {z and stem .. "rjimmi" or stem .. "rimmi"}
data.forms["com_pa"] = {z and stemz .. "rjimmi" or stem .. "rimmi"}
data.forms["voc_pa"] = data.forms["ins_pa"]
data.forms["voc_pa"] = data.forms["ins_pa"]
data.forms["nom_co"] = {z and stem .. "rjir" or stem .. "rir"}
data.forms["nom_co"] = {z and stemz .. "rjir" or stem .. "rir"}
data.forms["acc_co"] = {z and stem .. "rjiri" or stem .. "riri"}
data.forms["acc_co"] = {z and stemz .. "rjiri" or stem .. "riri"}
data.forms["gen_co"] = {z and stem .. "rjiro" or stem .. "riro"}
data.forms["gen_co"] = {z and stemz .. "rjiro" or stem .. "riro"}
data.forms["dat_co"] = {z and stem .. "rjirti" or stem .. "rirti"}
data.forms["dat_co"] = {z and stemz .. "rjirti" or stem .. "rirti"}
data.forms["loc_co"] = {z and stem .. "rjirri" or stem .. "rirri"}
data.forms["loc_co"] = {z and stemz .. "rjirri" or stem .. "rirri"}
data.forms["ins_co"] = {z and stem .. "rjirzi" or stem .. "rirzi"}
data.forms["ins_co"] = {z and stemz .. "rjirzi" or stem .. "rirzi"}
data.forms["com_co"] = {z and stem .. "rjirmi" or stem .. "rirmi"}
data.forms["com_co"] = {z and stemz .. "rjirmi" or stem .. "rirmi"}
data.forms["voc_co"] = data.forms["ins_co"]
data.forms["voc_co"] = data.forms["ins_co"]
end
end

Navigation menu