45,660
edits
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
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); data.decl_type = "o" | local s1 = sub(stem, 1, -2); data.decl_type = "o" | ||
table.insert(data.categories, "Modern Gallaecian o-declension nouns") | table.insert(data.categories, "Modern Gallaecian o-declension " .. (data.proper and "proper" or "") .. " nouns") | ||
data.forms["di_s"] = {s1 .. "o"} | data.forms["di_s"] = {s1 .. "o"} | ||
Line 35: | Line 35: | ||
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 nouns") | table.insert(data.categories, "Modern Gallaecian a-declension " .. (data.proper and "proper" or "") .. " nouns") | ||
data.forms["di_s"] = {s1 .. "a"} | data.forms["di_s"] = {s1 .. "a"} | ||
Line 56: | Line 56: | ||
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 nouns") | table.insert(data.categories, "Modern Gallaecian e-declension " .. (data.proper and "proper" or "") .. " nouns") | ||
data.forms["di_s"] = {s1 .. "e"} | data.forms["di_s"] = {s1 .. "e"} | ||
Line 79: | Line 79: | ||
local changes = {["d"] = "n", ["z"] = "i", ["ñ"] = "n"} | local changes = {["d"] = "n", ["z"] = "i", ["ñ"] = "n"} | ||
local changed = gsub(s1, ".$", function(foo) return changes[foo] or "-" end) | local changed = gsub(s1, ".$", function(foo) return changes[foo] or "-" end) | ||
table.insert(data.categories, "Modern Gallaecian n-declension nouns") | table.insert(data.categories, "Modern Gallaecian n-declension " .. (data.proper and "proper" or "") .. " nouns") | ||
data.forms["di_s"] = {stem} | data.forms["di_s"] = {stem} | ||
Line 102: | Line 102: | ||
local stem = data.head; data.decl_type = "r" | local stem = data.head; data.decl_type = "r" | ||
local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | local s1 = sub(stem, 1, -2); local s2 = sub(stem, 1, -3) | ||
table.insert(data.categories, "Modern Gallaecian r-declension nouns") | table.insert(data.categories, "Modern Gallaecian r-declension " .. (data.proper and "proper" or "") .. " nouns") | ||
data.forms["di_s"] = {s1 .. "r"} | data.forms["di_s"] = {s1 .. "r"} | ||
Line 123: | Line 123: | ||
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 nouns") | table.insert(data.categories, "Modern Gallaecian nt-declension " .. (data.proper and "proper" or "") .. " nouns") | ||
data.forms["di_s"] = {s1 .. "n"} | data.forms["di_s"] = {s1 .. "n"} | ||
Line 143: | Line 143: | ||
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" | ||
table.insert(data.categories, "Modern Gallaecian consonant-declension 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} |