Module:qhv-noun/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 69: Line 69:
setmetatable(alldata["1-a"], {__call = function(self, args, data)
setmetatable(alldata["1-a"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local v = sub(stem, -2, -1)
local v = sub(stem, -2, -2)
local stemr = (sub(stem, -1) == "m" and sub(stem, 1, -3) .. lengthen(v) .. "b"
local stemr = (sub(stem, -1) == "m" and sub(stem, 1, -3) .. lengthen(v) .. "b"
or sub(stem, -1) == "n" and sub(stem, 1, -3) .. lengthen(v) .. "d"
or sub(stem, -1) == "n" and sub(stem, 1, -3) .. lengthen(v) .. "d"
Line 539: Line 539:
setmetatable(alldata["3-a"], {__call = function(self, args, data)
setmetatable(alldata["3-a"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local v = sub(stem, -2, -2)
local stemr = (sub(stem, -1) == "m" and sub(stem, 1, -3) .. lengthen(v) .. "b"
local stemr = (sub(stem, -1) == "m" and sub(stem, 1, -3) .. lengthen(v) .. "b"
or sub(stem, -1) == "n" and sub(stem, 1, -3) .. lengthen(v) .. "d"
or sub(stem, -1) == "n" and sub(stem, 1, -3) .. lengthen(v) .. "d"
Line 848: Line 849:
setmetatable(alldata["5-a"], {__call = function(self, args, data)
setmetatable(alldata["5-a"], {__call = function(self, args, data)
local stem = args[1]
local stem = args[1]
local v = sub(stem, -2, -2)
local stemr = (sub(stem, -1) == "m" and sub(stem, 1, -3) .. lengthen(v) .. "b"
local stemr = (sub(stem, -1) == "m" and sub(stem, 1, -3) .. lengthen(v) .. "b"
or sub(stem, -1) == "n" and sub(stem, 1, -3) .. lengthen(v) .. "d"
or sub(stem, -1) == "n" and sub(stem, 1, -3) .. lengthen(v) .. "d"

Navigation menu