Module:qay-noun/data

From Linguifex
< Module:qay-noun
Revision as of 22:48, 24 June 2022 by Sware (talk | contribs) (Created page with "local sub = mw.ustring.sub local gsub = mw.ustring.gsub local match = mw.ustring.match local PAGENAME = mw.title.getCurrentTitle().text local data = {} data["in_c"] = { par...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:qay-noun/data/doc

local sub = mw.ustring.sub
local gsub = mw.ustring.gsub
local match = mw.ustring.match
local PAGENAME = mw.title.getCurrentTitle().text

local data = {}

data["in_c"] = {
	params = {
		[1] = {},
	},
}
setmetatable(data["in_c"], {__call = function(self, args, data)
	local stem = data.head; data.decl_type = "consonantal"; local s1 = sub(stem, 1, -2)
		  
	table.insert(data.categories, "Ayeri consonantal " .. (data.proper and "proper" or "") .. " nouns")
	
	data.forms["top_s"] = {stem}
	data.forms["age_s"] = {stem .. "reng"}
	data.forms["pat_s"] = {stem .. "ley"}
	data.forms["dat_s"] = {stem .. "yam"}
	data.forms["gen_s"] = {stem .. "ena"}
	data.forms["loc_s"] = {stem .. "ya"}
	data.forms["cau_s"] = {stem .. "isa"}
	data.forms["loc_s"] = {stem .. "eri"}
	
	data.forms["top_p"] = {stem .. "ye"}
	data.forms["age_p"] = {stem .. "yereng"}
	data.forms["pat_p"] = {stem .. "yeley"}
	data.forms["dat_p"] = {stem .. "jyam"}
	data.forms["gen_p"] = {stem .. "yena"}
	data.forms["loc_p"] = {stem .. "jya"}
	data.forms["cau_p"] = {stem .. "jisa"}
	data.forms["loc_p"] = {stem .. "yeri"}
	
end
})

return data