48,355
edits
No edit summary |
No edit summary |
||
| Line 47: | Line 47: | ||
local export = {} | local export = {} | ||
function export.vowel_harmony(term) | |||
local polarity = { | |||
["au"] = "back", ["[ei]?u[oa]?"] = "back", ["o[ai]?"] = "back", ["[ủỏ]"] = "back", | |||
["a[iy]"] = "front", ["ey"] = "front", ["ů[aei]?"] = "front", ["[ei]ů"] = "front", ["[ủỷả]"] = "front" | |||
} | |||
for pat, harmony in pairs(polarity) do | |||
if find(term, pat) then return harmony end | |||
end | |||
return "neutral" | |||
end | |||
-- exportable to be used by [[Module:pine-noun]] | -- exportable to be used by [[Module:pine-noun]] | ||