Module:rad-stem: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 472: Line 472:
-- nonpast parameters
-- nonpast parameters
principle_parts["1s"] = args["1s"] or (principle_parts["2s"] .. "e")
if args["1s"] then
principle_parts["3s"] = args["3s"] or (principle_parts["2s"] .. "ș")
principle_parts["1s"] = args["1s"]
else
principle_parts["1s"] = mw.ustring.gsub(principle_parts["2s"] .. "e", "([âø])e$", "%1i")
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"], "([^aeuøâ])ie$", "%1iè")
principle_parts["1s"] = mw.ustring.gsub(principle_parts["1s"], "([^au])oe$", "%1ui")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "([^a])ue$", "%1ui")
end
if args["3s"] then
principle_parts["3s"] = args["3s"]
else
principle_parts["3s"] = principle_parts["2s"] .. "ș"
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "([^eoø])aș$", "%1áș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "áș$", "ảș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "([^aeuøâ])iș$", "%1eaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "([^i])eș$", "%1eaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "([^a])uș$", "%1oaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "([^au])oș$", "%1oaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "[øy]ș$", "øaș")
principle_parts["3s"] = mw.ustring.gsub(principle_parts["3s"], "âș$", "oaș")
end
principle_parts["pl"] = args["pl"] or (principle_parts["2s"])
principle_parts["pl"] = args["pl"] or (principle_parts["2s"])
principle_parts["a"] = args["a"] or mw.ustring.gsub(principle_parts["2s"] .. "a", "([eoø])a$", "%1à")
principle_parts["a"] = args["a"] or mw.ustring.gsub(principle_parts["2s"] .. "a", "([eoø])a$", "%1à")
principle_parts["a"] = mw.ustring.gsub(principle_parts["a"], "aa$", "á")
principle_parts["a"] = mw.ustring.gsub(principle_parts["a"], "áa$", "ả")
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")
Line 491: Line 515:
-- past parameters
-- past parameters
principle_parts["apst"] = args["apst"] or mw.ustring.gsub(principle_parts["pst"] .. "a", "([eoø])a$", "%1à")
principle_parts["apst"] = args["apst"] or mw.ustring.gsub(principle_parts["pst"] .. "a", "([eoø])a$", "%1à")
principle_parts["apst"] = mw.ustring.gsub(principle_parts["apst"], "aa$", "á")
principle_parts["apst"] = mw.ustring.gsub(principle_parts["apst"], "áa$", "ả")
principle_parts["apst"] = mw.ustring.gsub(principle_parts["apst"], "âa$", "oà")
principle_parts["aipst"] = args["aipst"] or (principle_parts["pst"] .. "ai")
principle_parts["aipst"] = args["aipst"] or (principle_parts["pst"] .. "ai")
principle_parts["epst"] = args["epst"] or principle_parts["pst"]
principle_parts["epst"] = args["epst"] or principle_parts["pst"]
principle_parts["rpst"] = args["rpst"] or (principle_parts["pst"] .. "r")
principle_parts["rpst"] = args["rpst"] or (principle_parts["pst"] .. "r")
principle_parts["rpst"] = mw.ustring.gsub(principle_parts["rpst"], "vr$", "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")