Module:mg-noun/data

From Linguifex
< Module:mg-noun
Revision as of 11:25, 12 September 2021 by Sware (talk | contribs)
Jump to navigation Jump to search


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

local data = {}

data["R"] = {
	params = {
		[1] = {},
	},
}
setmetatable(data["R"], {__call = function(self, args, data)
	local stem = data.head; local s1 = sub(stem, 1, -2)
	data.decl_type = "R"
	table.insert(data.categories, "Modern Gallaecian r-declension nouns")
	
	data.forms["di_s"] = {stem .. "r"}
	data.forms["da_s"] = {s1 .. "re"}
	data.forms["lo_s"] = {s1 .. "re"}
	
	data.forms["di_p"] = {s1 .. "res"}
	data.forms["da_p"] = {s1 .. "rú"}
	data.forms["lo_p"] = {s1 .. "rui"}
	
end
})

return data