45,647
edits
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
syllables = split(term, "·") | syllables = split(term, "·") | ||
for i, syllable in ipairs(syllables) do | |||
weight[i] = match(syllable, "[aeiouy" .. NONSYLLABIC .. "]$") and "l" or "h" | |||
end | |||
local a, p = weight[#weight-2], weight[#weight-1] | |||
return table.concat(syllables) | return table.concat(syllables) |