Module:xchc-pron: Difference between revisions

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