45,646
edits
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 | local phonemic = term | ||
for _, rule in ipairs(phonemic_rules) do | for _, rule in ipairs(phonemic_rules) do | ||
phonemic = gsub( | 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( | phonetic = gsub(phonetic, rule[1], rule[2]) | ||
end]] | end]] | ||