Module:User:Smashhoof/test

local export = {}

function export.split_tone(word) word = mw.ustring.toNFD(word) local tones = "" local stripped = "" for c in mw.ustring.gmatch(word, ".") do   	if c == ACUTE then tones = tones .. "H" elseif c == CIRC then tones = tones .. "F" elseif c ~= MACRON then stripped = stripped .. c		end end return {stripped, tones} end

return export