Module:mg-noun/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 170: Line 170:
setmetatable(data["consonant"], {__call = function(self, args, data)
setmetatable(data["consonant"], {__call = function(self, args, data)
local stem = data.head; data.decl_type = "consonant"
local stem = data.head; data.decl_type = "consonant"
local qstem = sub(stem, -1) == "c" and gsub(stem, "c$", "qu")
table.insert(data.categories, "Modern Gallaecian consonant-declension " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Modern Gallaecian consonant-declension " .. (data.proper and "proper" or "") .. " nouns")
data.forms["di_s"] = {stem}
data.forms["di_s"] = {stem}
data.forms["da_s"] = {stem .. "e"}
data.forms["da_s"] = {qstem .. "e"}
data.forms["lo_s"] = {stem .. "e"}
data.forms["lo_s"] = {qstem .. "e"}
data.forms["di_p"] = {stem .. "es"}
data.forms["di_p"] = {qstem .. "es"}
data.forms["da_p"] = {stem .. "ú"}
data.forms["da_p"] = {stem .. "ú"}
data.forms["lo_p"] = {stem .. "ui"}
data.forms["lo_p"] = {stem .. "ui"}

Navigation menu