Module:mg-noun/data: Difference between revisions

Jump to navigation Jump to search
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; data.decl_type = "o"
local stem = data.head; data.decl_type = "o"; local s1 = sub(stem, 1, -2)
local inserted = gsub(stem, "(.)o$", "i%1"); inserted = gsub(inserted, "ii", "i")
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")
Line 34: Line 33:
}
}
setmetatable(data["a"], {__call = function(self, args, data)
setmetatable(data["a"], {__call = function(self, args, data)
local stem = data.head; data.decl_type = "a"
local stem = data.head; data.decl_type = "a"; local s1 = sub(stem, 1, -2)
local s1 = sub(stem, 1, -2)
table.insert(data.categories, "Modern Gallaecian a-declension " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Modern Gallaecian a-declension " .. (data.proper and "proper" or "") .. " nouns")
Line 55: Line 53:
}
}
setmetatable(data["e"], {__call = function(self, args, data)
setmetatable(data["e"], {__call = function(self, args, data)
local stem = data.head; data.decl_type = "e"
local stem = data.head; data.decl_type = "e"; local s1 = sub(stem, 1, -2)
local s1 = sub(stem, 1, -2)
table.insert(data.categories, "Modern Gallaecian e-declension " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Modern Gallaecian e-declension " .. (data.proper and "proper" or "") .. " nouns")
Line 122: Line 119:
}
}
setmetatable(data["nt"], {__call = function(self, args, data)
setmetatable(data["nt"], {__call = function(self, args, data)
local stem = data.head; data.decl_type = "nt"
local stem = data.head; data.decl_type = "nt"; local s1 = sub(stem, 1, -2)
local s1 = sub(stem, 1, -2)
table.insert(data.categories, "Modern Gallaecian nt-declension " .. (data.proper and "proper" or "") .. " nouns")
table.insert(data.categories, "Modern Gallaecian nt-declension " .. (data.proper and "proper" or "") .. " nouns")

Navigation menu