Module:rad-stem/templates: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
mNo edit summary
Line 143: Line 143:
local oblique_pl = {['genpl'] = true, ['datpl'] = true, ['accpl'] = true, ['inspl'] = true, ['gendu'] = true, ['datdu'] = true, ['accdu'] = true, ['insdu'] = true,}
local oblique_pl = {['genpl'] = true, ['datpl'] = true, ['accpl'] = true, ['inspl'] = true, ['gendu'] = true, ['datdu'] = true, ['accdu'] = true, ['insdu'] = true,}
-- detect inanimate --
-- detect inanimate --
if mw.ustring.match(mw.ustring.lower(adj_base), "(^ a [" .. C .. "])") or mw.ustring.match(adj_base, "(^ ag )") then
if mw.ustring.match(mw.ustring.lower(adj_base), "^( ?a [" .. C .. "])") or mw.ustring.match(adj_base, "^( ag )") then
if oblique_pl[case] then
if oblique_pl[case] then
adj_base = mw.ustring.gsub(adj_base, "^ ag ([iíỉIÍỈ])", " a’ %1")
adj_base = mw.ustring.gsub(adj_base, "^ ag ([iíỉIÍỈ])", " a’ %1")

Navigation menu