Module:qhv-adj/data: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
Line 52: Line 52:
data.forms["dat_a_sg"] = {s and stems .. "o" or stem .. "ro", s and stems .. "ot" or stem .. "rot"}
data.forms["dat_a_sg"] = {s and stems .. "o" or stem .. "ro", s and stems .. "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"] = {stems .. "ros"}
data.forms["ins_a_sg"] = {s and stems .. "os" or stem .. "ros"}
data.forms["com_a_sg"] = {stems .. "ron", stem .. "rom"}
data.forms["com_a_sg"] = {s and stems .. "on" or stem .. "ron", s and stems .. "om" or stem .. "rom"}
data.forms["voc_a_sg"] = {stem .. "os"}
data.forms["voc_a_sg"] = {stem .. "os"}
Line 83: Line 83:
data.forms["voc_t_pl"] = {stem .. "as"}
data.forms["voc_t_pl"] = {stem .. "as"}
data.forms["nom_a_pl"] = {stems .. "ra"}
data.forms["nom_a_pl"] = {s and stems .. "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"] = {stems .. "ro", stems .. "rot"}
data.forms["gen_a_pl"] = {s and stems .. "o" or stem .. "ro", s and stems .. "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"] = {stems .. "ros"}
data.forms["ins_a_pl"] = {s and stems .. "os" or stem .. "ros"}
data.forms["com_a_pl"] = {stems .. "ron", stems.. "rom"}
data.forms["com_a_pl"] = {s and stems .. "on" or stem .. "ron", s and stems .. "om" or stem.. "rom"}
data.forms["voc_a_pl"] = {stem .. "as"}
data.forms["voc_a_pl"] = {stem .. "as"}


Line 122: Line 122:
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"] = {stem .. "ro"}
data.forms["post_gen_a_sg"] = {s and stems .. "o" or stem .. "ro"}
data.forms["post_dat_a_sg"] = {stem .. "rot"}
data.forms["post_dat_a_sg"] = {s and stems .. "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"] = {stem .. "roso"}
data.forms["post_ins_a_sg"] = {s and stems .. "oso" or stem .. "roso"}
data.forms["post_com_a_sg"] = {stem .. "romo"}
data.forms["post_com_a_sg"] = {s and stems .. "omo" or stem .. "romo"}
data.forms["post_voc_a_sg"] = {stem .. "os"}
data.forms["post_voc_a_sg"] = {stem .. "os"}


Line 156: Line 156:
data.forms["post_voc_t_pl"] = {stem .. "as"}
data.forms["post_voc_t_pl"] = {stem .. "as"}
data.forms["post_nom_a_pl"] = {stems .. "ra"}
data.forms["post_nom_a_pl"] = {s and stems .. "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"] = {stems .. "roti"}
data.forms["post_gen_a_pl"] = {s and stems .. "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"] = {stems .. "rossi"}
data.forms["post_ins_a_pl"] = {s and stems .. "ossi" or stem .. "rossi"}
data.forms["post_com_a_pl"] = {stems .. "rommi"}
data.forms["post_com_a_pl"] = {s and stems .. "ommi" or stem .. "rommi"}
data.forms["post_voc_a_pl"] = {stem .. "as"}
data.forms["post_voc_a_pl"] = {stem .. "as"}
end
end
Line 175: Line 175:
local stem = args[1]
local stem = args[1]
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
local stems = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or stem
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")
Line 265: Line 264:
setmetatable(d["IIr"], {__call = function(self, args, data)
setmetatable(d["IIr"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local stems = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or stem
data.decl_type = "IIr"
data.decl_type = "IIr"
table.insert(data.categories, "High Valyrian class-IIr adjectives")
table.insert(data.categories, "High Valyrian class-IIr adjectives")
Line 275: Line 273:
data.forms["nom_l_sg"] = {stem .. "z"}
data.forms["nom_l_sg"] = {stem .. "z"}
data.forms["acc_l_sg"] = data.forms["nom_l_sg"]
data.forms["acc_l_sg"] = data.forms["nom_l_sg"]
data.forms["gen_l_sg"] = {stems .. "ro"}
data.forms["gen_l_sg"] = {stem .. "ro"}
data.forms["dat_l_sg"] = {stems .. "ro", stem .. "rot"}
data.forms["dat_l_sg"] = {stem .. "ro", stem .. "rot"}
data.forms["loc_l_sg"] = {stems .. "rē"}
data.forms["loc_l_sg"] = {stem .. "rē"}
data.forms["ins_l_sg"] = {stems .. "ros"}
data.forms["ins_l_sg"] = {stem .. "ros"}
data.forms["com_l_sg"] = {stems .. "ron", stems .. "rom"}
data.forms["com_l_sg"] = {stem .. "ron", stem .. "rom"}
data.forms["voc_l_sg"] = {stems .. "res"}
data.forms["voc_l_sg"] = {stem .. "res"}
data.forms["nom_t_sg"] = {stems .. "rior"}
data.forms["nom_t_sg"] = {stem .. "rior"}
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"] = {stems .. "rȳr"}
data.forms["gen_t_sg"] = {stem .. "rȳr"}
data.forms["dat_t_sg"] = data.forms["gen_t_sg"]
data.forms["dat_t_sg"] = data.forms["gen_t_sg"]
data.forms["loc_t_sg"] = data.forms["gen_t_sg"]
data.forms["loc_t_sg"] = data.forms["gen_t_sg"]
data.forms["ins_t_sg"] = {stems .. "rȳs"}
data.forms["ins_t_sg"] = {stem .. "rȳs"}
data.forms["com_t_sg"] = {stems .. "rȳn", stems .. "rȳm"}
data.forms["com_t_sg"] = {stem .. "rȳn", stem .. "rȳm"}
data.forms["voc_t_sg"] = {stems .. "rios"}
data.forms["voc_t_sg"] = {stem .. "rios"}
data.forms["nom_l_pl"] = {stems .. "ri"}
data.forms["nom_l_pl"] = {stem .. "ri"}
data.forms["acc_l_pl"] = data.forms["nom_l_pl"]
data.forms["acc_l_pl"] = data.forms["nom_l_pl"]
data.forms["gen_l_pl"] = {stems .. "ro", stems .. "rot"}
data.forms["gen_l_pl"] = {stem .. "ro", stem .. "rot"}
data.forms["dat_l_pl"] = data.forms["gen_l_pl"]
data.forms["dat_l_pl"] = data.forms["gen_l_pl"]
data.forms["loc_l_pl"] = data.forms["gen_l_pl"]
data.forms["loc_l_pl"] = data.forms["gen_l_pl"]
data.forms["ins_l_pl"] = {stems .. "ros"}
data.forms["ins_l_pl"] = {stem .. "ros"}
data.forms["com_l_pl"] = {stems .. "ron", stems .. "rom"}
data.forms["com_l_pl"] = {stem .. "ron", stem .. "rom"}
data.forms["voc_l_pl"] = {stems .. "ris"}
data.forms["voc_l_pl"] = {stem .. "ris"}
data.forms["nom_t_pl"] = {stems .. "riar"}
data.forms["nom_t_pl"] = {stem .. "riar"}
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"] = {stems .. "rȳ", stems .. "rȳt"}
data.forms["gen_t_pl"] = {stem .. "rȳ", stem .. "rȳt"}
data.forms["dat_t_pl"] = data.forms["gen_t_pl"]
data.forms["dat_t_pl"] = data.forms["gen_t_pl"]
data.forms["loc_t_pl"] = data.forms["gen_t_pl"]
data.forms["loc_t_pl"] = data.forms["gen_t_pl"]
data.forms["ins_t_pl"] = {stems .. "rȳs"}
data.forms["ins_t_pl"] = {stem .. "rȳs"}
data.forms["com_t_pl"] = {stems .. "rȳn", stems .. "rȳm"}
data.forms["com_t_pl"] = {stem .. "rȳn", stem .. "rȳm"}
data.forms["voc_t_pl"] = {stems .. "rīs"}
data.forms["voc_t_pl"] = {stem .. "rīs"}




data.forms["post_nom_l_sg"] = {stem .. "z"}
data.forms["post_nom_l_sg"] = {stem .. "z"}
data.forms["post_acc_l_sg"] = data.forms["post_nom_l_sg"]
data.forms["post_acc_l_sg"] = data.forms["post_nom_l_sg"]
data.forms["post_gen_l_sg"] = {stems .. "ro"}
data.forms["post_gen_l_sg"] = {stem .. "ro"}
data.forms["post_dat_l_sg"] = {stems .. "rot"}
data.forms["post_dat_l_sg"] = {stem .. "rot"}
data.forms["post_loc_l_sg"] = {stems .. "rē"}
data.forms["post_loc_l_sg"] = {stem .. "rē"}
data.forms["post_ins_l_sg"] = {stems .. "rose"}
data.forms["post_ins_l_sg"] = {stem .. "rose"}
data.forms["post_com_l_sg"] = {stems .. "rome"}
data.forms["post_com_l_sg"] = {stem .. "rome"}
data.forms["post_voc_l_sg"] = {stems .. "res"}
data.forms["post_voc_l_sg"] = {stem .. "res"}
data.forms["post_nom_t_sg"] = {stems .. "rior"}
data.forms["post_nom_t_sg"] = {stem .. "rior"}
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"] = {stems .. "rȳro"}
data.forms["post_gen_t_sg"] = {stem .. "rȳro"}
data.forms["post_dat_t_sg"] = data.forms["post_gen_t_sg"]
data.forms["post_dat_t_sg"] = data.forms["post_gen_t_sg"]
data.forms["post_loc_t_sg"] = data.forms["post_gen_t_sg"]
data.forms["post_loc_t_sg"] = data.forms["post_gen_t_sg"]
data.forms["post_ins_t_sg"] = {stems .. "rȳso"}
data.forms["post_ins_t_sg"] = {stem .. "rȳso"}
data.forms["post_com_t_sg"] = {stems .. "rȳmo"}
data.forms["post_com_t_sg"] = {stem .. "rȳmo"}
data.forms["post_voc_t_sg"] = {stems .. "rios"}
data.forms["post_voc_t_sg"] = {stem .. "rios"}
data.forms["post_nom_l_pl"] = {stems .. "ri"}
data.forms["post_nom_l_pl"] = {stem .. "ri"}
data.forms["post_acc_l_pl"] = data.forms["post_nom_l_pl"]
data.forms["post_acc_l_pl"] = data.forms["post_nom_l_pl"]
data.forms["post_gen_l_pl"] = {stems .. "roti"}
data.forms["post_gen_l_pl"] = {stem .. "roti"}
data.forms["post_dat_l_pl"] = data.forms["post_gen_l_pl"]
data.forms["post_dat_l_pl"] = data.forms["post_gen_l_pl"]
data.forms["post_loc_l_pl"] = data.forms["post_gen_l_pl"]
data.forms["post_loc_l_pl"] = data.forms["post_gen_l_pl"]
data.forms["post_ins_l_pl"] = {stems .. "rossi"}
data.forms["post_ins_l_pl"] = {stem .. "rossi"}
data.forms["post_com_l_pl"] = {stems .. "rommi"}
data.forms["post_com_l_pl"] = {stem .. "rommi"}
data.forms["post_voc_l_pl"] = {stems .. "ris"}
data.forms["post_voc_l_pl"] = {stem .. "ris"}
data.forms["post_nom_t_pl"] = {stems .. "riar"}
data.forms["post_nom_t_pl"] = {stem .. "riar"}
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"] = {stems .. "rȳti"}
data.forms["post_gen_t_pl"] = {stem .. "rȳti"}
data.forms["post_dat_t_pl"] = data.forms["post_gen_t_pl"]
data.forms["post_dat_t_pl"] = data.forms["post_gen_t_pl"]
data.forms["post_loc_t_pl"] = data.forms["post_gen_t_pl"]
data.forms["post_loc_t_pl"] = data.forms["post_gen_t_pl"]
data.forms["post_ins_t_pl"] = {stems .. "rȳssi"}
data.forms["post_ins_t_pl"] = {stem .. "rȳssi"}
data.forms["post_com_t_pl"] = {stems .. "rȳmmi"}
data.forms["post_com_t_pl"] = {stem .. "rȳmmi"}
data.forms["post_voc_t_pl"] = {stems .. "rīs"}
data.forms["post_voc_t_pl"] = {stem .. "rīs"}
end
end
})
})
Line 355: Line 353:
setmetatable(d["III"], {__call = function(self, args, data)
setmetatable(d["III"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local stems = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or stem
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
data.decl_type = "III"
data.decl_type = "III"
table.insert(data.categories, "High Valyrian class-III adjectives")
table.insert(data.categories, "High Valyrian class-III adjectives")


data.forms["eq"] = {stem .. "pa"}
data.forms["eq"] = {stemm .. "pa"}
data.forms["comp"] = {stem .. "kta"}
data.forms["comp"] = {stem .. "kta"}
data.forms["sup"] = {stem .. "je"}
data.forms["sup"] = {stem .. "je"}

Revision as of 21:28, 21 March 2021



local sub = mw.ustring.sub

local d = {}

d["I"] = {
	params = {
		[1] = {},
	},
}
setmetatable(d["I"], {__call = function(self, args, data)
	local stem = args[1]
	local s = sub(stem, -1) == "s"
	local stems = sub(stem, 1, -2) .. "j"
	data.decl_type = "I"
	table.insert(data.categories, "High Valyrian class-I adjectives")
	
	data.forms["eq"] = {stem .. "āpa"}
	data.forms["comp"] = {stem .. "ykta"}
	data.forms["sup"] = {stem .. "āje"}
	
	
	data.forms["nom_l_sg"] = {stem .. "a"}
	data.forms["acc_l_sg"] = {stem .. "e"}
	data.forms["gen_l_sg"] = {stem .. "o"}
	data.forms["dat_l_sg"] = {stem .. "o", stem .. "ot"}
	data.forms["loc_l_sg"] = {stem .. "ā"}
	data.forms["ins_l_sg"] = {stem .. "os"}
	data.forms["com_l_sg"] = {stem .. "on", stem .. "om"}
	data.forms["voc_l_sg"] = {stem .. "us"}
		
	data.forms["nom_s_sg"] = {stem .. "ys"}
	data.forms["acc_s_sg"] = {stem .. "i"}
	data.forms["gen_s_sg"] = {stem .. "o"}
	data.forms["dat_s_sg"] = {stem .. "o", stem .. "ot"}
	data.forms["loc_s_sg"] = {stem .. "ȳ"}
	data.forms["ins_s_sg"] = {stem .. "os"}
	data.forms["com_s_sg"] = {stem .. "on", stem .. "om"}
	data.forms["voc_s_sg"] = {stem .. "ys"}
	
	data.forms["nom_t_sg"] = {stem .. "on"}
	data.forms["acc_t_sg"] = data.forms["nom_t_sg"]
	data.forms["gen_t_sg"] = {stem .. "o"}
	data.forms["dat_t_sg"] = {stem .. "o", stem .. "ot"}
	data.forms["loc_t_sg"] = data.forms["dat_t_sg"]
	data.forms["ins_t_sg"] = {stem .. "os"}
	data.forms["com_t_sg"] = {stem .. "on", stem .. "om"}
	data.forms["voc_t_sg"] = data.forms["ins_t_sg"]
	
	data.forms["nom_a_sg"] = {stem .. "or"}
	data.forms["acc_a_sg"] = data.forms["nom_a_sg"]
	data.forms["gen_a_sg"] = {s and stems .. "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["loc_a_sg"] = data.forms["dat_a_sg"]
	data.forms["ins_a_sg"] = {s and stems .. "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["voc_a_sg"] = {stem .. "os"}
	
	data.forms["nom_l_pl"] = {stem .. "i"}
	data.forms["acc_l_pl"] = {stem .. "ī"}
	data.forms["gen_l_pl"] = {stem .. "o", stem .. "ot"}
	data.forms["dat_l_pl"] = data.forms["gen_l_pl"]
	data.forms["loc_l_pl"] = data.forms["gen_l_pl"]
	data.forms["ins_l_pl"] = {stem .. "os"}
	data.forms["com_l_pl"] = {stem .. "on", stem .. "om"}
	data.forms["voc_l_pl"] = {stem .. "is"}
	
	data.forms["nom_s_pl"] = {stem .. "ys", stem .. "yz"}
	data.forms["acc_s_pl"] = {stem .. "ī"}
	data.forms["gen_s_pl"] = {stem .. "o", stem .. "ot"}
	data.forms["dat_s_pl"] = data.forms["gen_s_pl"]
	data.forms["loc_s_pl"] = data.forms["acc_s_pl"]
	data.forms["ins_s_pl"] = {stem .. "os"}
	data.forms["com_s_pl"] = {stem .. "on", stem .. "om"}
	data.forms["voc_s_pl"] = data.forms["nom_s_pl"]
	
	data.forms["nom_t_pl"] = {stem .. "a"}
	data.forms["acc_t_pl"] = data.forms["nom_t_pl"]
	data.forms["gen_t_pl"] = {stem .. "o", stem .. "ot"}
	data.forms["dat_t_pl"] = data.forms["gen_t_pl"]
	data.forms["loc_t_pl"] = data.forms["gen_t_pl"]
	data.forms["ins_t_pl"] = {stem .. "os"}
	data.forms["com_t_pl"] = {stem .. "on", stem .. "om"}
	data.forms["voc_t_pl"] = {stem .. "as"}
	
	data.forms["nom_a_pl"] = {s and stems .. "a" or stem .. "ra"}
	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["dat_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["com_a_pl"] = {s and stems .. "on" or stem .. "ron", s and stems .. "om" or stem.. "rom"}
	data.forms["voc_a_pl"] = {stem .. "as"}


	data.forms["post_nom_l_sg"] = {stem .. "a"}
	data.forms["post_acc_l_sg"] = {stem .. "e"}
	data.forms["post_gen_l_sg"] = {stem .. "o"}
	data.forms["post_dat_l_sg"] = {stem .. "ot"}
	data.forms["post_loc_l_sg"] = {stem .. "ā"}
	data.forms["post_ins_l_sg"] = {stem .. "osa"}
	data.forms["post_com_l_sg"] = {stem .. "oma"}
	data.forms["post_voc_l_sg"] = {stem .. "us"}

	data.forms["post_nom_s_sg"] = {stem .. "ys"}
	data.forms["post_acc_s_sg"] = {stem .. "i"}
	data.forms["post_gen_s_sg"] = {stem .. "o"}
	data.forms["post_dat_s_sg"] = {stem .. "ot"}
	data.forms["post_loc_s_sg"] = {stem .. "ȳ"}
	data.forms["post_ins_s_sg"] = {stem .. "osy"}
	data.forms["post_com_s_sg"] = {stem .. "omy"}
	data.forms["post_voc_s_sg"] = {stem .. "ys"}
		
	data.forms["post_nom_t_sg"] = {stem .. "on"}
	data.forms["post_acc_t_sg"] = data.forms["post_nom_t_sg"]
	data.forms["post_gen_t_sg"] = {stem .. "o"}
	data.forms["post_dat_t_sg"] = {stem .. "ot"}
	data.forms["post_loc_t_sg"] = data.forms["post_dat_t_sg"]
	data.forms["post_ins_t_sg"] = {stem .. "oso"}
	data.forms["post_com_t_sg"] = {stem .. "omo"}
	data.forms["post_voc_t_sg"] = {stem .. "os"}
	
	data.forms["post_nom_a_sg"] = {stem .. "or"}
	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_dat_a_sg"] = {s and stems .. "ot" or stem .. "rot"}
	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_com_a_sg"] = {s and stems .. "omo" or stem .. "romo"}
	data.forms["post_voc_a_sg"] = {stem .. "os"}

	data.forms["post_nom_l_pl"] = {stem .. "i"}
	data.forms["post_acc_l_pl"] = {stem .. "ī"}
	data.forms["post_gen_l_pl"] = {stem .. "oti"}
	data.forms["post_dat_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_loc_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_ins_l_pl"] = {stem .. "ossi"}
	data.forms["post_com_l_pl"] = {stem .. "ommi"}
	data.forms["post_voc_l_pl"] = {stem .. "is"}

	data.forms["post_nom_s_pl"] = {stem .. "yzy"}
	data.forms["post_acc_s_pl"] = {stem .. "ī"}
	data.forms["post_gen_s_pl"] = {stem .. "oti"}
	data.forms["post_dat_s_pl"] = data.forms["post_gen_s_pl"]
	data.forms["post_loc_s_pl"] = data.forms["post_acc_s_pl"]
	data.forms["post_ins_s_pl"] = {stem .. "ossi"}
	data.forms["post_com_s_pl"] = {stem .. "ommi"}
	data.forms["post_voc_s_pl"] = {stem .. "yzys"}
	
	data.forms["post_nom_t_pl"] = {stem .. "a"}
	data.forms["post_acc_t_pl"] = data.forms["post_nom_t_pl"]
	data.forms["post_gen_t_pl"] = {stem .. "oti"}
	data.forms["post_dat_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_loc_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_ins_t_pl"] = {stem .. "ossi"}
	data.forms["post_com_t_pl"] = {stem .. "ommi"}
	data.forms["post_voc_t_pl"] = {stem .. "as"}
	
	data.forms["post_nom_a_pl"] = {s and stems .. "a" or stem .. "ra"}
	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_dat_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_com_a_pl"] = {s and stems .. "ommi" or stem .. "rommi"}
	data.forms["post_voc_a_pl"] = {stem .. "as"}
end
})

d["II"] = {
	params = {
		[1] = {},
	},
}
setmetatable(d["II"], {__call = function(self, args, data)
	local stem = args[1]
	local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
	data.decl_type = "II"
	table.insert(data.categories, "High Valyrian class-II adjectives")

	data.forms["eq"] = {stemm .. "pa"}
	data.forms["comp"] = {stem .. "kta"}
	data.forms["sup"] = {stem .. "je"}
	
	data.forms["nom_l_sg"] = {stem .. "e"}
	data.forms["acc_l_sg"] = data.forms["nom_l_sg"]
	data.forms["gen_l_sg"] = {stem .. "o"}
	data.forms["dat_l_sg"] = {stem .. "o", stem .. "ot"}
	data.forms["loc_l_sg"] = {stem .. "ē"}
	data.forms["ins_l_sg"] = {stem .. "os"}
	data.forms["com_l_sg"] = {stem .. "on", stem .. "om"}
	data.forms["voc_l_sg"] = {stem .. "es"}
	
	data.forms["nom_t_sg"] = {stem .. "ior"}
	data.forms["acc_t_sg"] = data.forms["nom_t_sg"]
	data.forms["gen_t_sg"] = {stem .. "ȳr"}
	data.forms["dat_t_sg"] = data.forms["gen_t_sg"]
	data.forms["loc_t_sg"] = data.forms["gen_t_sg"]
	data.forms["ins_t_sg"] = {stem .. "ȳs"}
	data.forms["com_t_sg"] = {stem .. "ȳn", stem .. "ȳm"}
	data.forms["voc_t_sg"] = {stem .. "ios"}
	
	data.forms["nom_l_pl"] = {stem .. "i"}
	data.forms["acc_l_pl"] = data.forms["nom_l_pl"]
	data.forms["gen_l_pl"] = {stem .. "o", stem .. "ot"}
	data.forms["dat_l_pl"] = data.forms["gen_l_pl"]
	data.forms["loc_l_pl"] = data.forms["gen_l_pl"]
	data.forms["ins_l_pl"] = {stem .. "os"}
	data.forms["com_l_pl"] = {stem .. "on", stem .. "om"}
	data.forms["voc_l_pl"] = {stem .. "is"}
	
	data.forms["nom_t_pl"] = {stem .. "iar"}
	data.forms["acc_t_pl"] = data.forms["nom_t_pl"]
	data.forms["gen_t_pl"] = {stem .. "ȳ", stem .. "ȳt"}
	data.forms["dat_t_pl"] = data.forms["gen_t_pl"]
	data.forms["loc_t_pl"] = data.forms["gen_t_pl"]
	data.forms["ins_t_pl"] = {stem .. "ȳs"}
	data.forms["com_t_pl"] = {stem .. "ȳn", stem .. "ȳm"}
	data.forms["voc_t_pl"] = {stem .. "īs"}


	data.forms["post_nom_l_sg"] = {stem .. "e"}
	data.forms["post_acc_l_sg"] = data.forms["post_nom_l_sg"]
	data.forms["post_gen_l_sg"] = {stem .. "o"}
	data.forms["post_dat_l_sg"] = {stem .. "ot"}
	data.forms["post_loc_l_sg"] = {stem .. "ē"}
	data.forms["post_ins_l_sg"] = {stem .. "ose"}
	data.forms["post_com_l_sg"] = {stem .. "ome"}
	data.forms["post_voc_l_sg"] = {stem .. "es"}
	
	data.forms["post_nom_t_sg"] = {stem .. "ior"}
	data.forms["post_acc_t_sg"] = data.forms["post_nom_t_sg"]
	data.forms["post_gen_t_sg"] = {stem .. "ȳro"}
	data.forms["post_dat_t_sg"] = data.forms["post_gen_t_sg"]
	data.forms["post_loc_t_sg"] = data.forms["post_gen_t_sg"]
	data.forms["post_ins_t_sg"] = {stem .. "ȳso"}
	data.forms["post_com_t_sg"] = {stem .. "ȳmo"}
	data.forms["post_voc_t_sg"] = {stem .. "ios"}
	
	data.forms["post_nom_l_pl"] = {stem .. "i"}
	data.forms["post_acc_l_pl"] = data.forms["post_nom_l_pl"]
	data.forms["post_gen_l_pl"] = {stem .. "oti"}
	data.forms["post_dat_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_loc_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_ins_l_pl"] = {stem .. "ossi"}
	data.forms["post_com_l_pl"] = {stem .. "ommi"}
	data.forms["post_voc_l_pl"] = {stem .. "is"}
	
	data.forms["post_nom_t_pl"] = {stem .. "iar"}
	data.forms["post_acc_t_pl"] = data.forms["post_nom_t_pl"]
	data.forms["post_gen_t_pl"] = {stem .. "ȳti"}
	data.forms["post_dat_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_loc_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_ins_t_pl"] = {stem .. "ȳssi"}
	data.forms["post_com_t_pl"] = {stem .. "ȳmmi"}
	data.forms["post_voc_t_pl"] = {stem .. "īs"}	
end
})

d["IIr"] = {
	params = {
		[1] = {},
	},
}
setmetatable(d["IIr"], {__call = function(self, args, data)
	local stem = args[1]
	data.decl_type = "IIr"
	table.insert(data.categories, "High Valyrian class-IIr adjectives")

	data.forms["eq"] = {stem .. "rpa"}
	data.forms["comp"] = {stem .. "rkta"}
	data.forms["sup"] = {stem .. "rje"}
	
	data.forms["nom_l_sg"] = {stem .. "z"}
	data.forms["acc_l_sg"] = data.forms["nom_l_sg"]
	data.forms["gen_l_sg"] = {stem .. "ro"}
	data.forms["dat_l_sg"] = {stem .. "ro", stem .. "rot"}
	data.forms["loc_l_sg"] = {stem .. "rē"}
	data.forms["ins_l_sg"] = {stem .. "ros"}
	data.forms["com_l_sg"] = {stem .. "ron", stem .. "rom"}
	data.forms["voc_l_sg"] = {stem .. "res"}
	
	data.forms["nom_t_sg"] = {stem .. "rior"}
	data.forms["acc_t_sg"] = data.forms["nom_t_sg"]
	data.forms["gen_t_sg"] = {stem .. "rȳr"}
	data.forms["dat_t_sg"] = data.forms["gen_t_sg"]
	data.forms["loc_t_sg"] = data.forms["gen_t_sg"]
	data.forms["ins_t_sg"] = {stem .. "rȳs"}
	data.forms["com_t_sg"] = {stem .. "rȳn", stem .. "rȳm"}
	data.forms["voc_t_sg"] = {stem .. "rios"}
	
	data.forms["nom_l_pl"] = {stem .. "ri"}
	data.forms["acc_l_pl"] = data.forms["nom_l_pl"]
	data.forms["gen_l_pl"] = {stem .. "ro", stem .. "rot"}
	data.forms["dat_l_pl"] = data.forms["gen_l_pl"]
	data.forms["loc_l_pl"] = data.forms["gen_l_pl"]
	data.forms["ins_l_pl"] = {stem .. "ros"}
	data.forms["com_l_pl"] = {stem .. "ron", stem .. "rom"}
	data.forms["voc_l_pl"] = {stem .. "ris"}
	
	data.forms["nom_t_pl"] = {stem .. "riar"}
	data.forms["acc_t_pl"] = data.forms["nom_t_pl"]
	data.forms["gen_t_pl"] = {stem .. "rȳ", stem .. "rȳt"}
	data.forms["dat_t_pl"] = data.forms["gen_t_pl"]
	data.forms["loc_t_pl"] = data.forms["gen_t_pl"]
	data.forms["ins_t_pl"] = {stem .. "rȳs"}
	data.forms["com_t_pl"] = {stem .. "rȳn", stem .. "rȳm"}
	data.forms["voc_t_pl"] = {stem .. "rīs"}


	data.forms["post_nom_l_sg"] = {stem .. "z"}
	data.forms["post_acc_l_sg"] = data.forms["post_nom_l_sg"]
	data.forms["post_gen_l_sg"] = {stem .. "ro"}
	data.forms["post_dat_l_sg"] = {stem .. "rot"}
	data.forms["post_loc_l_sg"] = {stem .. "rē"}
	data.forms["post_ins_l_sg"] = {stem .. "rose"}
	data.forms["post_com_l_sg"] = {stem .. "rome"}
	data.forms["post_voc_l_sg"] = {stem .. "res"}
	
	data.forms["post_nom_t_sg"] = {stem .. "rior"}
	data.forms["post_acc_t_sg"] = data.forms["post_nom_t_sg"]
	data.forms["post_gen_t_sg"] = {stem .. "rȳro"}
	data.forms["post_dat_t_sg"] = data.forms["post_gen_t_sg"]
	data.forms["post_loc_t_sg"] = data.forms["post_gen_t_sg"]
	data.forms["post_ins_t_sg"] = {stem .. "rȳso"}
	data.forms["post_com_t_sg"] = {stem .. "rȳmo"}
	data.forms["post_voc_t_sg"] = {stem .. "rios"}
	
	data.forms["post_nom_l_pl"] = {stem .. "ri"}
	data.forms["post_acc_l_pl"] = data.forms["post_nom_l_pl"]
	data.forms["post_gen_l_pl"] = {stem .. "roti"}
	data.forms["post_dat_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_loc_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_ins_l_pl"] = {stem .. "rossi"}
	data.forms["post_com_l_pl"] = {stem .. "rommi"}
	data.forms["post_voc_l_pl"] = {stem .. "ris"}
	
	data.forms["post_nom_t_pl"] = {stem .. "riar"}
	data.forms["post_acc_t_pl"] = data.forms["post_nom_t_pl"]
	data.forms["post_gen_t_pl"] = {stem .. "rȳti"}
	data.forms["post_dat_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_loc_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_ins_t_pl"] = {stem .. "rȳssi"}
	data.forms["post_com_t_pl"] = {stem .. "rȳmmi"}
	data.forms["post_voc_t_pl"] = {stem .. "rīs"}
end
})

d["III"] = {
	params = {
		[1] = {},
	},
}
setmetatable(d["III"], {__call = function(self, args, data)
	local stem = args[1]
	local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
	data.decl_type = "III"
	table.insert(data.categories, "High Valyrian class-III adjectives")

	data.forms["eq"] = {stemm .. "pa"}
	data.forms["comp"] = {stem .. "kta"}
	data.forms["sup"] = {stem .. "je"}
	
	data.forms["nom_l_sg"] = {stem .. "ie"}
	data.forms["acc_l_sg"] = data.forms["nom_l_sg"]
	data.forms["gen_l_sg"] = {stem .. "io"}
	data.forms["dat_l_sg"] = {stem .. "io", stem .. "iot"}
	data.forms["loc_l_sg"] = {stem .. "iē"}
	data.forms["ins_l_sg"] = {stem .. "ios"}
	data.forms["com_l_sg"] = {stem .. "ion", stem .. "iom"}
	data.forms["voc_l_sg"] = {stem .. "ies"}
	
	data.forms["nom_t_sg"] = {stem .. "ior"}
	data.forms["acc_t_sg"] = data.forms["nom_t_sg"]
	data.forms["gen_t_sg"] = {stem .. "ȳr"}
	data.forms["dat_t_sg"] = {stem .. "ȳro", stem .. "ȳrot"}
	data.forms["loc_t_sg"] = data.forms["gen_t_sg"]
	data.forms["ins_t_sg"] = {stem .. "ȳs"}
	data.forms["com_t_sg"] = {stem .. "ȳn", stem .. "ȳm"}
	data.forms["voc_t_sg"] = {stem .. "ios"}
	
	data.forms["nom_l_pl"] = {stem .. "ī"}
	data.forms["acc_l_pl"] = data.forms["nom_l_pl"]
	data.forms["gen_l_pl"] = {stem .. "io", stem .. "iot"}
	data.forms["dat_l_pl"] = data.forms["gen_l_pl"]
	data.forms["loc_l_pl"] = data.forms["gen_l_pl"]
	data.forms["ins_l_pl"] = {stem .. "iot"}
	data.forms["com_l_pl"] = {stem .. "ion", stem .. "iom"}
	data.forms["voc_l_pl"] = {stem .. "īs"}
	
	data.forms["nom_t_pl"] = {stem .. "iar"}
	data.forms["acc_t_pl"] = data.forms["nom_t_pl"]
	data.forms["gen_t_pl"] = {stem .. "ȳ", stem .. "ȳt"}
	data.forms["dat_t_pl"] = data.forms["gen_t_pl"]
	data.forms["loc_t_pl"] = data.forms["gen_t_pl"]
	data.forms["ins_t_pl"] = {stem .. "ȳs"}
	data.forms["com_t_pl"] = {stem .. "ȳn", stem .. "ȳm"}
	data.forms["voc_t_pl"] = {stem .. "īs"}


	data.forms["post_nom_l_sg"] = {stem .. "ie"}
	data.forms["post_acc_l_sg"] = data.forms["post_nom_l_sg"]
	data.forms["post_gen_l_sg"] = {stem .. "io"}
	data.forms["post_dat_l_sg"] = {stem .. "iot"}
	data.forms["post_loc_l_sg"] = {stem .. "iē"}
	data.forms["post_ins_l_sg"] = {stem .. "ȳse"}
	data.forms["post_com_l_sg"] = {stem .. "ȳme"}
	data.forms["post_voc_l_sg"] = {stem .. "ies"}
	
	data.forms["post_nom_t_sg"] = {stem .. "ior"}
	data.forms["post_acc_t_sg"] = data.forms["post_nom_t_sg"]
	data.forms["post_gen_t_sg"] = {stem .. "ȳro"}
	data.forms["post_dat_t_sg"] = {stem .. "ȳrot"}
	data.forms["post_loc_t_sg"] = data.forms["post_gen_t_sg"]
	data.forms["post_ins_t_sg"] = {stem .. "ȳso"}
	data.forms["post_com_t_sg"] = {stem .. "ȳmo"}
	data.forms["post_voc_t_sg"] = {stem .. "ios"}
	
	data.forms["post_nom_l_pl"] = {stem .. "ī"}
	data.forms["post_acc_l_pl"] = data.forms["post_nom_l_pl"]
	data.forms["post_gen_l_pl"] = {stem .. "ȳti"}
	data.forms["post_dat_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_loc_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_ins_l_pl"] = {stem .. "ȳssi"}
	data.forms["post_com_l_pl"] = {stem .. "ȳmmi"}
	data.forms["post_voc_l_pl"] = {stem .. "īs"}
	
	data.forms["post_nom_t_pl"] = {stem .. "iar"}
	data.forms["post_acc_t_pl"] = data.forms["post_nom_t_pl"]
	data.forms["post_gen_t_pl"] = {stem .. "ȳti"}
	data.forms["post_dat_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_loc_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_ins_t_pl"] = {stem .. "ȳssi"}
	data.forms["post_com_t_pl"] = {stem .. "ȳmmi"}
	data.forms["post_voc_t_pl"] = {stem .. "īs"}	
end
})

d["litse"] = function(args, data)
	data.decl_type = "II"
	table.insert(data.categories, "High Valyrian class-II adjectives")
	local stem = "lits"
	
	data.forms["eq"] = {"līspa"}
	data.forms["comp"] = {"līsta"}
	data.forms["sup"] = {"līje"}
	
	data.forms["nom_l_sg"] = {stem .. "e"}
	data.forms["acc_l_sg"] = data.forms["nom_l_sg"]
	data.forms["gen_l_sg"] = {stem .. "o"}
	data.forms["dat_l_sg"] = {stem .. "o", stem .. "ot"}
	data.forms["loc_l_sg"] = {stem .. "ē"}
	data.forms["ins_l_sg"] = {stem .. "os"}
	data.forms["com_l_sg"] = {stem .. "on", stem .. "om"}
	data.forms["voc_l_sg"] = {stem .. "es"}
	
	data.forms["nom_t_sg"] = {stem .. "ior"}
	data.forms["acc_t_sg"] = data.forms["nom_t_sg"]
	data.forms["gen_t_sg"] = {stem .. "ȳr"}
	data.forms["dat_t_sg"] = data.forms["gen_t_sg"]
	data.forms["loc_t_sg"] = data.forms["gen_t_sg"]
	data.forms["ins_t_sg"] = {stem .. "ȳs"}
	data.forms["com_t_sg"] = {stem .. "ȳn", stem .. "ȳm"}
	data.forms["voc_t_sg"] = {stem .. "ios"}
	
	data.forms["nom_l_pl"] = {stem .. "i"}
	data.forms["acc_l_pl"] = data.forms["nom_l_pl"]
	data.forms["gen_l_pl"] = {stem .. "o", stem .. "ot"}
	data.forms["dat_l_pl"] = data.forms["gen_l_pl"]
	data.forms["loc_l_pl"] = data.forms["gen_l_pl"]
	data.forms["ins_l_pl"] = {stem .. "os"}
	data.forms["com_l_pl"] = {stem .. "on", stem .. "om"}
	data.forms["voc_l_pl"] = {stem .. "is"}
	
	data.forms["nom_t_pl"] = {stem .. "iar"}
	data.forms["acc_t_pl"] = data.forms["nom_t_pl"]
	data.forms["gen_t_pl"] = {stem .. "ȳ", stem .. "ȳt"}
	data.forms["dat_t_pl"] = data.forms["gen_t_pl"]
	data.forms["loc_t_pl"] = data.forms["gen_t_pl"]
	data.forms["ins_t_pl"] = {stem .. "ȳs"}
	data.forms["com_t_pl"] = {stem .. "ȳn", stem .. "ȳm"}
	data.forms["voc_t_pl"] = {stem .. "īs"}


	data.forms["post_nom_l_sg"] = {stem .. "e"}
	data.forms["post_acc_l_sg"] = data.forms["post_nom_l_sg"]
	data.forms["post_gen_l_sg"] = {stem .. "o"}
	data.forms["post_dat_l_sg"] = {stem .. "ot"}
	data.forms["post_loc_l_sg"] = {stem .. "ē"}
	data.forms["post_ins_l_sg"] = {stem .. "ose"}
	data.forms["post_com_l_sg"] = {stem .. "ome"}
	data.forms["post_voc_l_sg"] = {stem .. "es"}
	
	data.forms["post_nom_t_sg"] = {stem .. "ior"}
	data.forms["post_acc_t_sg"] = data.forms["post_nom_t_sg"]
	data.forms["post_gen_t_sg"] = {stem .. "ȳro"}
	data.forms["post_dat_t_sg"] = data.forms["post_gen_t_sg"]
	data.forms["post_loc_t_sg"] = data.forms["post_gen_t_sg"]
	data.forms["post_ins_t_sg"] = {stem .. "ȳso"}
	data.forms["post_com_t_sg"] = {stem .. "ȳmo"}
	data.forms["post_voc_t_sg"] = {stem .. "ios"}
	
	data.forms["post_nom_l_pl"] = {stem .. "i"}
	data.forms["post_acc_l_pl"] = data.forms["post_nom_l_pl"]
	data.forms["post_gen_l_pl"] = {stem .. "oti"}
	data.forms["post_dat_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_loc_l_pl"] = data.forms["post_gen_l_pl"]
	data.forms["post_ins_l_pl"] = {stem .. "ossi"}
	data.forms["post_com_l_pl"] = {stem .. "ommi"}
	data.forms["post_voc_l_pl"] = {stem .. "is"}
	
	data.forms["post_nom_t_pl"] = {stem .. "iar"}
	data.forms["post_acc_t_pl"] = data.forms["post_nom_t_pl"]
	data.forms["post_gen_t_pl"] = {stem .. "ȳti"}
	data.forms["post_dat_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_loc_t_pl"] = data.forms["post_gen_t_pl"]
	data.forms["post_ins_t_pl"] = {stem .. "ȳssi"}
	data.forms["post_com_t_pl"] = {stem .. "ȳmmi"}
	data.forms["post_voc_t_pl"] = {stem .. "īs"}	
end

return d