Module:kilta-pron: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 15: Line 15:


local consonants = "[pβmtsnɾlʧkxʷʞƕː]"
local consonants = "[pβmtsnɾlʧkxʷʞƕː]"
local vowels = "[aeiouəꜷꜽ]"
local vowels = "[aeiouəꜷꜽː]"


local export = {}
local export = {}
Line 54: Line 54:


local function syllabify(term)
local function syllabify(term)
local syllable = "(" .. consonants .. "ː?*" .. vowels .. "ː?" .. consonants .. "-)"
local syllable = "(" .. consonants .. "*" .. vowels .. "ː?" .. consonants .. "-)"
term = term:gsub(syllable, ".%1.")
term = term:gsub(syllable, ".%1.")
term = term:gsub("^%.", "")
term = term:gsub("^%.", "")

Navigation menu