Module:rad-stem/templates: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 328: Line 328:
-- detect vocative
-- detect vocative
if case == "voc" or case == "vocdu" or case == "vocpl" then
if case == "voc" or case == "vocdu" or case == "vocpl" then
definite = false
adj_base = mw.ustring.gsub(adj_base, "^( ?)ag? ", "%1")
adj_base = mw.ustring.gsub(adj_base, "^( ?)ag? ", "%1")
adj_base = mw.ustring.gsub(adj_base, " ag? ", " ")
adj_base = mw.ustring.gsub(adj_base, " ag? ", " ")
Line 376: Line 375:
local u_initial = mw.ustring.match(mw.ustring.lower(base), "^([uúủ])")
local u_initial = mw.ustring.match(mw.ustring.lower(base), "^([uúủ])")
if case == "voc" or case == "vocdu" or case == "vocpl" then
if case == "voc" or case == "vocdu" or case == "vocpl" then
definite = false
article = ""
elseif gender == "in" then
elseif gender == "in" then
if oblique_pl[case] then
if oblique_pl[case] then