45,646
edits
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
local roundh = ipa:match("[yuøo]") and "r" or ipa:match("[ie]") and "u" or nil | local roundh = ipa:match("[yuøo]") and "r" or ipa:match("[ie]") and "u" or nil | ||
local repl = {["r"] = data.r, ["u"] = data.u} | local repl = {["r"] = data.r, ["u"] = data.u} | ||
return word:gsub("R", | return ipa -- word:gsub("R", repl[roundh or def]) | ||
end | end | ||