Module:etymology: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 290: Line 290:
local function is_suffix(word)
local function is_suffix(word)
     return affix_delimiter[mw.ustring.sub(word, 1, 1)]
     return affix_delimiter[mw.ustring.sub(word, 1, 1)]
end
local function is_affix(word)
return is_prefix(word) or is_suffix(word) or is_infix(word) or is_circumfix(word)
end
end


Line 409: Line 405:
     for i, term in ipairs(args[2]) do
     for i, term in ipairs(args[2]) do
         local i_term, i_args = m_inline.parse(term)
         local i_term, i_args = m_inline.parse(term)
         if plaenk_alt[i_term] then i_term = plaenk_alt[i_term] end
         if args[1] == "lnk-pro" and plaenk_alt[i_term] then i_term = plaenk_alt[i_term] end
         n_parts = n_parts + 1
         n_parts = n_parts + 1
         local language_from = nil
         local language_from = nil