Module:xchc-noun: Difference between revisions

Jump to navigation Jump to search
no edit summary
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", ipa)
return ipa -- word:gsub("R", repl[roundh or def])
end
end


Navigation menu