Module:qhv-adj/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 176: Line 176:
setmetatable(d["II"], {__call = function(self, args, data)
setmetatable(d["II"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local stemj = sub(stem, -2) == "ēj" and sub(stem, 1, -3) .. "ī" or stem
local stemj = sub(stem, -2) == "sr" and sub(stem, 1, -3) .. "r" or sub(stem, -2) == "ēj" and sub(stem, 1, -3) .. "ī" or stem
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or sub(stem, -1) == "ñ" and sub(stem, 1, -2) .. "m" or stemj
local stemm = sub(stem, -1) == "n" and sub(stem, 1, -2) .. "m" or sub(stem, -1) == "ñ" and sub(stem, 1, -2) .. "m" or stemj
local ny = sub(stem, -1) == "ñ"; local j = sub(stem, -1) == "j"
local ny = sub(stem, -1) == "ñ"; local j = sub(stem, -1) == "j"

Navigation menu