Module:siwa-noun/data: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 310: Line 310:
["ld"] = {type = "boolean"},
["ld"] = {type = "boolean"},
["s"] = {type = "boolean"},
["s"] = {type = "boolean"},
["d"] = {type = "boolean"},
},
},
}
}
Line 321: Line 322:
if stem:match("[ae]$") then
if stem:match("[ae]$") then
if args.ld then
if args.ld then
data.forms["m"] = {stem .. "mo"}
data.forms["m"] = {(args.d and s1 or stem) .. "mo"}
loc = stem .. "moi"
loc = (args.d and s1 or stem) .. "moi"
na = true
na = true
elseif stem:match(v.."[mnv][mnv].$") then
elseif stem:match(v.."[mnv][mnv].$") then
Line 343: Line 344:
loc = s2 .. "lmoi"
loc = s2 .. "lmoi"
else
else
data.forms["m"] = {stem .. "mo"}
data.forms["m"] = {(args.d and s1 or stem) .. "mo"}
loc = stem .. "moi"
loc = (args.d and s1 or stem) .. "moi"
na = true
na = true
end
end