Module:etymology: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 180: Line 180:
     ["·"] = true,
     ["·"] = true,
}
}
local affix_delimiter_pattern = "[%-·]"
local affix_compound_data = {
local affix_compound_data = {
["alliterative"] = {
["alliterative"] = {
Line 239: Line 240:
tp = "tatpurusa",
tp = "tatpurusa",
}
}
local function is_circumfix(word)
return mw.ustring.find(word, affix_delimiter_pattern .. " " .. affix_delimiter_pattern) ~= nil
end


local function is_infix(word)
local function is_infix(word)
Line 362: Line 367:
                 table.insert(categories, language_to.name .. " terms suffixed with " .. cite_term)
                 table.insert(categories, language_to.name .. " terms suffixed with " .. cite_term)
                 n_affixes = n_affixes + 1
                 n_affixes = n_affixes + 1
            elseif is_circumfix(term) then
            table.insert(categories, language_to.name .. "terms circumfixed with " .. cite_term)
            n_affixes = n_affixes + 1
             end
             end
         end
         end