Module:mg-noun/data: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 13: Line 13:
setmetatable(data["o"], {__call = function(self, args, data)
setmetatable(data["o"], {__call = function(self, args, data)
local stem = data.head; data.decl_type = "o"; local s1 = sub(stem, 1, -2)
local stem = data.head; data.decl_type = "o"; local s1 = sub(stem, 1, -2)
local inserted = gsub(stem, "([^i])o$", "i%1"); inserted = gsub(inserted, "ii", "i")
local inserted = gsub(stem, "([^i])o$", "i%1"); inserted = gsub(stem, "(.)io$", "i%1i"); inserted = gsub(inserted, "ii", "i")
table.insert(data.categories, "Modern Gallaecian o-declension " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Modern Gallaecian o-declension " .. (data.proper and "proper" or "") .. " nouns")