Module:rad-stem: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 480: Line 480:
principle_parts["1s"] = args["1s"]
principle_parts["1s"] = args["1s"]
else
else
principle_parts["1s"] = mw.ustring.gsub(principle_parts["2s"] .. "e", "([âø])e$", "%1i")
if principle_parts["vstem"] then
principle_parts["1s"] = mw.ustring.gsub(principle_parts["2s"], "v$", "") .. "e"
else
principle_parts["1s"] = principle_parts["2s"] .. "e"
end
principle_parts["1s"] = mw.ustring.gsub(principle_parts["1s"], "([âø])e$", "%1i")
principle_parts["1s"] = mw.ustring.gsub(principle_parts["1s"], "([^eoø])ae$", "%1ai")
principle_parts["1s"] = mw.ustring.gsub(principle_parts["1s"], "([^eoø])ae$", "%1ai")
principle_parts["1s"] = mw.ustring.gsub(principle_parts["1s"], "([^i])ee$", "%1ei")
principle_parts["1s"] = mw.ustring.gsub(principle_parts["1s"], "([^i])ee$", "%1ei")
Line 499: Line 504:
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "[øy]ș$", "øaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "[øy]ș$", "øaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "âș$", "oaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "âș$", "oaș")
if principle_parts["vstem"] then principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "vș$", "ș") end
end
end
principle_parts["pl"] = args["pl"]
principle_parts["pl"] = args["pl"]
Line 505: Line 511:
principle_parts["a"] = mw.ustring.gsub(principle_parts["a"], "áa$", "ả")
principle_parts["a"] = mw.ustring.gsub(principle_parts["a"], "áa$", "ả")
principle_parts["a"] = mw.ustring.gsub(principle_parts["a"], "âa$", "oà")
principle_parts["a"] = mw.ustring.gsub(principle_parts["a"], "âa$", "oà")
principle_parts["aa"] = args["aa"] --or mw.ustring.gsub(principle_parts["2s"] .. "á", "([^eoø])avá$", "%1áva")
--principle_parts["aa"] = args["aa"] --or mw.ustring.gsub(principle_parts["2s"] .. "á", "([^eoø])avá$", "%1áva")
principle_parts["ai"] = args["ai"] --or mw.ustring.gsub(principle_parts["2s"] .. "ai", "([^eoø])avai$", "%1áe")
--principle_parts["ai"] = args["ai"] --or mw.ustring.gsub(principle_parts["2s"] .. "ai", "([^eoø])avai$", "%1áe")
principle_parts["depers"] = args["depers"]
principle_parts["depers"] = args["depers"]
--principle_parts["o"] = mw.ustring.gsub(principle_parts["2s"] .. "o", "([au])o$", "%1ò")
--principle_parts["o"] = mw.ustring.gsub(principle_parts["2s"] .. "o", "([au])o$", "%1ò")
Line 515: Line 521:
principle_parts["imp"] = args["imp"] or imp_temp or nil
principle_parts["imp"] = args["imp"] or imp_temp or nil
principle_parts["r"] = args["r"] or (principle_parts["2s"] .. "r")
principle_parts["r"] = args["r"] or (principle_parts["2s"] .. "r")
principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "vr$", "r")
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")
principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "([zx])r$", "%1dr")
principle_parts["r"] = mw.ustring.gsub(principle_parts["r"], "([zx])r$", "%1dr")
Line 527: Line 533:
principle_parts["apst"] = mw.ustring.gsub(principle_parts["apst"], "áa$", "ả")
principle_parts["apst"] = mw.ustring.gsub(principle_parts["apst"], "áa$", "ả")
principle_parts["apst"] = mw.ustring.gsub(principle_parts["apst"], "âa$", "oà")
principle_parts["apst"] = mw.ustring.gsub(principle_parts["apst"], "âa$", "oà")
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"] or (principle_parts["pst"] .. "r")
principle_parts["rpst"] = args["rpst"] or (principle_parts["pst"] .. "r")