Module:kilta-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 73: Line 73:
function export.crux(term)
function export.crux(term)
term = mw.ustring.lower(term)
term = mw.ustring.lower(term)
local phonemic, phonetic = term, term
local phonemic = term
for _, rule in ipairs(phonemic_rules) do
for _, rule in ipairs(phonemic_rules) do
phonemic = gsub(term, rule[1], rule[2])
phonemic = gsub(phonemic, rule[1], rule[2])
end
end
phonemic = syllabicize(phonemic)
phonemic = syllabicize(phonemic)
phonetic = phonemic
--[[for _, rule in ipairs(phonetic_rules) do
--[[for _, rule in ipairs(phonetic_rules) do
phonetic = gsub(phonemic, rule[1], rule[2])
phonetic = gsub(phonetic, rule[1], rule[2])
end]]
end]]