This module removes the Tashkil (diacretics) and the Tatweel character from Arabic text. It's useful for links e.g. to Wiktionary.
local export = {}
function export.convert(frame)
local args = frame:getParent().args
local text = frame.args[1]
text = mw.ustring.gsub(text, '[ـًٌٍَُِّْٰ]', '')
return text
end
return export