-- >
ˈwɜrd-- This module has not been heavily testedlocal p =
function p.main(frame) local result = "" local a = frame.args[1 ] if type(a) ~= "string" then error("Must be a string") end local db = while mw.ustring.len(a) > 0 do local fl, fv = 0, nil for t, i in pairs(db) do --mw.log(i, t) for tt, ii in pairs(t) do --mw.log(tt, ii) if mw.ustring.find(a, ii, 1, true)
nil then fl, fv = 1, mw.ustring.sub(a, 1, 1) else fv = "
" end result = result .. fv --mw.log(fl, fv, a) a = mw.ustring.sub(a, fl + 1) end return resultendreturn p