Module:siwa-noun/data: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 44: Line 44:
["d2"] = {type = "boolean"},
["d2"] = {type = "boolean"},
["s"] = {type = "boolean"}, -- Stressed
["s"] = {type = "boolean"}, -- Stressed
["i"] = {type = "boolean"}, -- -i subgroup
},
},
}
}
Line 58: Line 57:
loc = (args.d2 and s2 or args.d and s1 or stem) .. "ki"
loc = (args.d2 and s2 or args.d and s1 or stem) .. "ki"
na = true
na = true
elseif args.i then
data.forms["u_pl"] = {stem .. "gi"}
data.forms["m_sg"] = {s1 .. "itṡa"}
data.forms["m_pl"] = {s1 .. "itṡagi"}
elseif stem:match(v.."mm.$") then
elseif stem:match(v.."mm.$") then
data.forms["m"] = {s3 .. (data.q == "s" and "mġa" or data.q == "l" and "mka" or "kka")}
data.forms["m"] = {s3 .. (data.q == "s" and "mġa" or data.q == "l" and "mka" or "kka")}
Line 817: Line 812:
["s"] = {type = "boolean"},
["s"] = {type = "boolean"},
["d"] = {type = "boolean"},
["d"] = {type = "boolean"},
["i"] = {type = "boolean"}, -- -i Subgroup
},
},
}
}
Line 828: Line 824:
data.forms["u_sg"] = {PAGENAME}
data.forms["u_sg"] = {PAGENAME}
if stem:match("m[ao]$") then
if stem:match("[iỉy]$") and args.i then
data.forms["u_pl"] = {stem .. "gi"}
data.forms["m_sg"] = {s1 .. "itṡa"}
data.forms["m_pl"] = {s1 .. "itṡagi"}
elseif stem:match("m[ao]$") then
data.forms["m_sg"] = {s2 .. (exactly(sv, "[ou]") and "ṡi" or "ka")}
data.forms["m_sg"] = {s2 .. (exactly(sv, "[ou]") and "ṡi" or "ka")}
data.forms["u_pl"] = {stem .. "gi"}
data.forms["u_pl"] = {stem .. "gi"}

Navigation menu