45,660
edits
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
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, "(.)io$", "i%1i"); inserted = gsub(inserted, "ii", "i") | local inserted = gsub(gsub(stem, "ch", "ʧ"), "([^i])o$", "i%1"); inserted = gsub(inserted, "(.)io$", "i%1i"); inserted = gsub(inserted, "ii", "i") | ||
inserted = gsub(inserted, "c$", "qu") | inserted = gsub(inserted, "c$", "qu"); inserted = gsub(inserted, "ʧ", "ch") | ||
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") | ||