45,363
edits
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
function export.syllable(frame) | function export.syllable(frame) | ||
syllables = {} | |||
local word = mw.title.getCurrentTitle().text | local word = mw.title.getCurrentTitle().text | ||
local pattern = "^(" .. initial .. ")?(" .. vocalic .. ")?(" .. internal .. ")?" | local pattern = "^(" .. initial .. ")?(" .. vocalic .. ")?(" .. internal .. ")?" | ||
table.insert(syllables, m_su.capturing_split(word, pattern)) | |||
return syllables[2] | |||
end | end | ||