Module:siwa-noun/data: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 183: Line 183:
-- TODO: add alternative forms with table.insert
-- TODO: add alternative forms with table.insert
for n, case in pairs(cases) do
for n, case in pairs(cases) do
if stem:match(v.."[^t][^nbkmvslhġ][ae]$") then
if stem:match("[^mpbvnrlkg]o$") then
table.insert(data.forms[case], s2 .. "h" .. ce[n])
elseif stem:match("[^mpbvnrlkg]o$") then
table.insert(data.forms[case], s1 .. "obi" .. ce[n])
table.insert(data.forms[case], s1 .. "obi" .. ce[n])
end
end