Module:xchc-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 103: Line 103:
local ipa = export.crux(term)
local ipa = export.crux(term)
local ret = {
local ret = {
["roundness"] = ipa:match("[yuøo]") and "r" or ipa:match("[ie]") and "u" or nil,
["roundness"] = ipa:match("[yuøo]") and "r" or ipa:match("[ie]") and "u" or "a",
["backness"] = ipa:match("ɜ") and "f" or ipa:match("ɔ") and "b" or nil,
["backness"] = ipa:match("ɜ") and "f" or ipa:match("ɔ") and "b" or "a",
}
}
return ret
return ret