Module:mg-noun/data: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12: Line 12:
}
}
setmetatable(data["o"], {__call = function(self, args, data)
setmetatable(data["o"], {__call = function(self, args, data)
local stem = data.head; local inserted = gsub(stem, "(.)o$", "i%1")
local stem = data.head; data.decl_type = "o"
local s1 = sub(stem, 1, -2); data.decl_type = "o"
local inserted = gsub(stem, "(.)o$", "i%1"); inserted = gsub(inserted, "ii", "i")
local s1 = sub(stem, 1, -2)
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")