10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 556: | Line 556: | ||
principle_parts["imp"] = args["imp"] or imp_temp or nil | principle_parts["imp"] = args["imp"] or imp_temp or nil | ||
end | end | ||
principle_parts["r"] = args["r"] | if args["r"] then | ||
principle_parts["r"] = args["r"] | |||
else | |||
principle_parts["r"] = (principle_parts["depers"] or principle_parts["2s"]) .. "r" | |||
if principle_parts["vstem"] then principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "vr$", "r") end | if principle_parts["vstem"] then principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "vr$", "r") end | ||
principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "([sș])r$", "%1tr") | principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "([sș])r$", "%1tr") | ||
Line 564: | Line 567: | ||
principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "ņr$", "ņgr") | principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "ņr$", "ņgr") | ||
principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "nvr$", "nur") | principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "nvr$", "nur") | ||
end | |||
-- past parameters | -- past parameters | ||
Line 572: | Line 576: | ||
-- principle_parts["aipst"] = args["aipst"] | -- principle_parts["aipst"] = args["aipst"] | ||
principle_parts["epst"] = args["epst"] | principle_parts["epst"] = args["epst"] | ||
principle_parts["rpst"] = args["rpst"] | if args["rpst"] then | ||
principle_parts["rpst"] = args["rpst"] | |||
else | |||
principle_parts["rpst"] = principle_parts["pst"] .. "r" | |||
principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "([sș])r$", "%1tr") | principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "([sș])r$", "%1tr") | ||
principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "([zx])r$", "%1dr") | principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "([zx])r$", "%1dr") | ||
Line 579: | Line 586: | ||
principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "mr$", "mbr") | principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "mr$", "mbr") | ||
principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "ņr$", "ņgr") | principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "ņr$", "ņgr") | ||
end | |||
return principle_parts | return principle_parts |