Module:qay-noun/data: Difference between revisions
No edit summary |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 12: | Line 12: | ||
} | } | ||
setmetatable(data["in_c"], {__call = function(self, args, data) | setmetatable(data["in_c"], {__call = function(self, args, data) | ||
local stem = | 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 = | local stem = PAGENAME; data.decl_type = "vocalic"; | ||
local s1 = sub(stem, 1, -2) | |||
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 53: | Line 54: | ||
data.forms["gen_s"] = {stem .. "na"} | data.forms["gen_s"] = {stem .. "na"} | ||
data.forms["loc_s"] = {stem .. "ya"} | data.forms["loc_s"] = {stem .. "ya"} | ||
data.forms["cau_s"] = {stem .. " | data.forms["cau_s"] = {(stem:match("i$") and s1 .. "ī" or stem .. "i") .. "sa"} | ||
data.forms["ins_s"] = {stem .. "ri"} | data.forms["ins_s"] = {stem .. "ri"} | ||
| Line 74: | Line 75: | ||
} | } | ||
setmetatable(data["an_c"], {__call = function(self, args, data) | setmetatable(data["an_c"], {__call = function(self, args, data) | ||
local stem = | 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 105: | Line 106: | ||
} | } | ||
setmetatable(data["an_v"], {__call = function(self, args, data) | setmetatable(data["an_v"], {__call = function(self, args, data) | ||
local stem = | local stem = PAGENAME; data.decl_type = "vocalic"; local s1 = sub(stem, 1, -2) | ||
table.insert(data.categories, "Ayeri vocalic " .. (data.proper and "proper" or "") .. " nouns") | table.insert(data.categories, "Ayeri vocalic " .. (data.proper and "proper" or "") .. " nouns") | ||
data.forms["top_s"] = {stem} | data.forms["top_s"] = {stem} | ||
data.forms["age_s"] = { | data.forms["age_s"] = {(stem:match("a$") and s1 .. "ā" or stem .. "a") .. "ng"} | ||
data.forms["pat_s"] = { | data.forms["pat_s"] = {(stem:match("a$") and s1 .. "ā" or stem .. "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"} | ||
data.forms["loc_s"] = {stem .. "ya"} | data.forms["loc_s"] = {stem .. "ya"} | ||
data.forms["cau_s"] = {stem .. " | data.forms["cau_s"] = {(stem:match("i$") and s1 .. "ī" or stem .. "i") .. "sa"} | ||
data.forms["ins_s"] = {stem .. "ri"} | data.forms["ins_s"] = {stem .. "ri"} | ||