Module:qay-noun/data: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
}
}
setmetatable(data["in_c"], {__call = function(self, args, data)
setmetatable(data["in_c"], {__call = function(self, args, data)
local stem = PAGENAME; data.decl_type = "consonantal"; local s1 = sub(stem, 1, -2)
local stem = PAGENAME; data.decl_type = "consonantal";
   
   
table.insert(data.categories, "Ayeri consonantal " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Ayeri consonantal " .. (data.proper and "proper" or "") .. " nouns")
Line 43: Line 43:
}
}
setmetatable(data["in_v"], {__call = function(self, args, data)
setmetatable(data["in_v"], {__call = function(self, args, data)
local stem = PAGENAME; data.decl_type = "vocalic"; local s1 = sub(stem, 1, -2)
local stem = PAGENAME; data.decl_type = "vocalic";
   
   
table.insert(data.categories, "Ayeri vocalic " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Ayeri vocalic " .. (data.proper and "proper" or "") .. " nouns")
Line 74: Line 74:
}
}
setmetatable(data["an_c"], {__call = function(self, args, data)
setmetatable(data["an_c"], {__call = function(self, args, data)
local stem = PAGENAME; data.decl_type = "consonantal"; local s1 = sub(stem, 1, -2)
local stem = PAGENAME; data.decl_type = "consonantal";
   
   
table.insert(data.categories, "Ayeri consonantal " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Ayeri consonantal " .. (data.proper and "proper" or "") .. " nouns")
Line 110: Line 110:
data.forms["top_s"] = {stem}
data.forms["top_s"] = {stem}
data.forms["age_s"] = {stem .. (stem:match("a$") and "ā" or "a") .. "ng"}
data.forms["age_s"] = {s1 .. (stem:match("a$") and "ā" or "a") .. "ng"}
data.forms["pat_s"] = {stem .. (stem:match("a$") and "ā" or "a") .. "s"}
data.forms["pat_s"] = {s1 .. (stem:match("a$") and "ā" or "a") .. "s"}
data.forms["dat_s"] = {stem .. "yam"}
data.forms["dat_s"] = {stem .. "yam"}
data.forms["gen_s"] = {stem .. "na"}
data.forms["gen_s"] = {stem .. "na"}