Module:qhv-adj/data: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 12: Line 12:
local stem = args[1]
local stem = args[1]
local stemr = (sub(stem, -2) == "rz" and sub(stem, 1, -2) .. "j" or sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j"
local stemr = (sub(stem, -2) == "rz" and sub(stem, 1, -2) .. "j" or sub(stem, -1) == "s" and sub(stem, 1, -2) .. "j"
or sub(stem, -1) == "j" and stem or stem .. "r")
or sub(stem, -1) == "j" and stem or sub(stem, -1) == "h" and sub(stem, 1, -2) .. "rh" or stem .. "r")
data.decl_type = "I"
data.decl_type = "I"
if not data.no_cat then table.insert(data.categories, "High Valyrian class-I adjectives") end
if not data.no_cat then table.insert(data.categories, "High Valyrian class-I adjectives") end