Module:siwa-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
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 .. ")?"
return m_su.capturing_split(word, pattern)[1]
table.insert(syllables, m_su.capturing_split(word, pattern))
return syllables[2]
end
end


Navigation menu