Module:qay-noun/data: Difference between revisions

no edit summary
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 = data.head; data.decl_type = "consonantal"; local s1 = sub(stem, 1, -2)
local stem = PAGENAME; data.decl_type = "consonantal"; local s1 = sub(stem, 1, -2)
   
   
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 = data.head; data.decl_type = "vocalic"; local s1 = sub(stem, 1, -2)
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 74: Line 74:
}
}
setmetatable(data["an_c"], {__call = function(self, args, data)
setmetatable(data["an_c"], {__call = function(self, args, data)
local stem = data.head; data.decl_type = "consonantal"; local s1 = sub(stem, 1, -2)
local stem = PAGENAME; data.decl_type = "consonantal"; local s1 = sub(stem, 1, -2)
   
   
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 105:
}
}
setmetatable(data["an_v"], {__call = function(self, args, data)
setmetatable(data["an_v"], {__call = function(self, args, data)
local stem = data.head; data.decl_type = "vocalic"; local s1 = sub(stem, 1, -2)
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")