47,697
edits
![]() | We're back! Sorry, bad combo of sickness, funeral and a month-long trip abroad. The site is back now. ![]() |
No edit summary |
No edit summary |
||
Line 67: | Line 67: | ||
local function syllabify(term) | local function syllabify(term) | ||
local final = {} | local final = {} | ||
for | for word in gsplit(term,"%s") do | ||
word = gsub(word, "(" .. consonants .. "*)(" .. vowels .. "*)", "%1%2·") | word = gsub(word, "(" .. consonants .. "*)(" .. vowels .. "*)", "%1%2·") | ||
word = gsub(word, "··", "·"); word = gsub(word, "·$", ""); word = gsub(word, "^·", "") | word = gsub(word, "··", "·"); word = gsub(word, "·$", ""); word = gsub(word, "^·", "") |