Module:siwa-noun/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 808: Line 808:
data.forms["m_pl"] = {s2 .. "ugi"}
data.forms["m_pl"] = {s2 .. "ugi"}
elseif stem:match("[bpv]i$") then
elseif stem:match("[bpv]i$") then
data.forms["m_sg"] = {gsub(s2, v.."(.*)$", "%1" .. (function(foo) return repl[foo] end)) .. "umi"}
local repl = {["ḍ"] = "hh", ["h"] = "k", ["lp"] = "ll"}
data.forms["m_sg"] = {gsub(s2, v.."(.*)$", function(foo, bar) return foo .. repl[bar] end) .. "umi"}
data.forms["u_pl"] = {stem .. "gi"}
data.forms["u_pl"] = {stem .. "gi"}
if stem:match(v.."[bp].$") then table.insert(data.forms["u_pl"], s2 .. "bṡi") end
if stem:match(v.."[bp].$") then table.insert(data.forms["u_pl"], s2 .. "bṡi") end
data.forms["m_pl"] = {gsub(s2, v.."(.*)$", "%1" .. (function(foo) return repl[foo] end)) .. "umṡi"}
data.forms["m_pl"] = {gsub(s2, v.."(.*)$", function(foo, bar) return foo .. repl[bar] end) .. "umṡi"}
elseif stem:match("[bpv]o$") then
elseif stem:match("[bpv]o$") then
data.forms["u_pl"] = {stem .. "gi"}
data.forms["u_pl"] = {stem .. "gi"}

Navigation menu