45,639
edits
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
local data = {} | local data = {} | ||
data[" | data["o"] = { | ||
params = { | params = { | ||
[1] = {}, | [1] = {}, | ||
}, | }, | ||
} | } | ||
setmetatable(data[" | setmetatable(data["o"], {__call = function(self, args, data) | ||
local stem = data.head; local inserted = gsub(stem, "(.)o$", "i%1") | local stem = data.head; local inserted = gsub(stem, "(.)o$", "i%1") | ||
local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | ||
data.decl_type = " | data.decl_type = "o" | ||
table.insert(data.categories, "Modern Gallaecian o-declension nouns") | table.insert(data.categories, "Modern Gallaecian o-declension nouns") | ||
Line 28: | Line 28: | ||
}) | }) | ||
data[" | data["a"] = { | ||
params = { | params = { | ||
[1] = {}, | [1] = {}, | ||
}, | }, | ||
} | } | ||
setmetatable(data[" | setmetatable(data["a"], {__call = function(self, args, data) | ||
local stem = data.head | local stem = data.head | ||
local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | ||
data.decl_type = " | data.decl_type = "a" | ||
table.insert(data.categories, "Modern Gallaecian a-declension nouns") | table.insert(data.categories, "Modern Gallaecian a-declension nouns") | ||
Line 50: | Line 50: | ||
}) | }) | ||
data[" | data["e"] = { | ||
params = { | params = { | ||
[1] = {}, | [1] = {}, | ||
}, | }, | ||
} | } | ||
setmetatable(data[" | setmetatable(data["e"], {__call = function(self, args, data) | ||
local stem = data.head | local stem = data.head | ||
local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | ||
data.decl_type = " | data.decl_type = "e" | ||
table.insert(data.categories, "Modern Gallaecian e-declension nouns") | table.insert(data.categories, "Modern Gallaecian e-declension nouns") | ||
Line 72: | Line 72: | ||
}) | }) | ||
data[" | data["n"] = { | ||
params = { | params = { | ||
[1] = {}, | [1] = {}, | ||
}, | }, | ||
} | } | ||
setmetatable(data[" | setmetatable(data["n"], {__call = function(self, args, data) | ||
local stem = data.head; data.decl_type = " | local stem = data.head; data.decl_type = "n" | ||
local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | ||
local changes = {["d"] = "n", ["z"] = "i", ["n"] = "n"} | local changes = {["d"] = "n", ["z"] = "i", ["n"] = "n"} | ||
Line 97: | Line 97: | ||
}) | }) | ||
data[" | data["r"] = { | ||
params = { | params = { | ||
[1] = {}, | [1] = {}, | ||
}, | }, | ||
} | } | ||
setmetatable(data[" | setmetatable(data["r"], {__call = function(self, args, data) | ||
local stem = data.head | local stem = data.head | ||
local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | ||
data.decl_type = " | data.decl_type = "r" | ||
table.insert(data.categories, "Modern Gallaecian r-declension nouns") | table.insert(data.categories, "Modern Gallaecian r-declension nouns") | ||