45,660
edits
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( | local inserted = gsub(stem, "([^i])o$", "i%1"); inserted = gsub(inserted, "(.)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") | ||