Module:qhv-adj/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 10: Line 10:
setmetatable(d["I"], {__call = function(self, args, data)
setmetatable(d["I"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local stemr = sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j" or sub(stem, -1) == "j" and stem or stem
local s = sub(stem, -1) == "s"
local j = sub(stem, -1) == "j"
local stemr = s and sub(stem, 1, -2) .. "j" or j and stem or stem
data.decl_type = "I"
data.decl_type = "I"
table.insert(data.categories, "High Valyrian class-I adjectives")
table.insert(data.categories, "High Valyrian class-I adjectives")

Navigation menu