Module:qhv-adj/data: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 174: Line 174:
local stem = args[1]
local stem = args[1]
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or stem
local stems = sub(stem, -1) == "s" and sub(stem, 1, -3) .. "j" or stem
local stems = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or stem
data.decl_type = "II"
data.decl_type = "II"
table.insert(data.categories, "High Valyrian class-II adjectives")
table.insert(data.categories, "High Valyrian class-II adjectives")
Line 264: Line 264:
setmetatable(d["IIr"], {__call = function(self, args, data)
setmetatable(d["IIr"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local stems = sub(stem, -1) == "s" and sub(stem, 1, -3) .. "j" or stem
local stems = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or stem
data.decl_type = "IIr"
data.decl_type = "IIr"
table.insert(data.categories, "High Valyrian class-IIr adjectives")
table.insert(data.categories, "High Valyrian class-IIr adjectives")
Line 354: Line 354:
setmetatable(d["III"], {__call = function(self, args, data)
setmetatable(d["III"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local stems = sub(stem, -1) == "s" and sub(stem, 1, -3) .. "j" or stem
local stems = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or stem
data.decl_type = "III"
data.decl_type = "III"
table.insert(data.categories, "High Valyrian class-III adjectives")
table.insert(data.categories, "High Valyrian class-III adjectives")