Module:rad-stem/templates: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 330: Line 330:
definite = false
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? ", " ")
adj_base = mw.ustring.gsub(adj_base, "^( ?)[aiu] ", "%1")
adj_base = mw.ustring.gsub(adj_base, "^( ?)[iu] ", "%1")
adj_base = mw.ustring.gsub(adj_base, " [aiu] ", "")
adj_base = mw.ustring.gsub(adj_base, " [iu] ", " ")
-- detect inanimate --
-- detect inanimate --
elseif mw.ustring.match(mw.ustring.lower(adj_base), "^( ?a [" .. C .. "])") or mw.ustring.match(adj_base, "^( ?ag )") or mw.ustring.match(mw.ustring.lower(adj_base), "( a [" .. C .. "])") or mw.ustring.match(adj_base, "( ag )") then
elseif mw.ustring.match(mw.ustring.lower(adj_base), "^( ?a [" .. C .. "])") or mw.ustring.match(adj_base, "^( ?ag )") or mw.ustring.match(mw.ustring.lower(adj_base), "( a [" .. C .. "])") or mw.ustring.match(adj_base, "( ag )") then