Module:mu-translit

local export = {}

local replacements = { ["aa"] = "A", ["ee"] = "E", ["ii"] = "I", ["oo"] = "O", ["ch"] = "C", ["sh"] = "S", ["zh"] = "Z", ["kw"] = "K", ["gw"] = "G", ["ng"] = "N", ["nd"] = "D", ["mb"] = "B", ["nZ"] = "X", ["nz"] = "M" }

function export.tr(text) local output = text -- Perform all replacements for key, value in pairs(replacements) do       output = output:gsub(key, value) end return output end

return export