45,641
edits
No edit summary |
No edit summary |
||
Line 97: | Line 97: | ||
for regex, repl in pairs(mutation == "nasal" and npat or spat) do | for regex, repl in pairs(mutation == "nasal" and npat or spat) do | ||
mutated = gsub(term, "^" .. regex, repl, 1) | mutated = gsub(term, "^" .. regex, repl, 1) | ||
mutated = gsub(mutated, "^k(.)", function(foo) return match(foo, "[aou]") and "c" or "qu" end) | mutated = gsub(mutated, "^k(.)", function(foo) return (match(foo, "[aou]") and "c" or "qu") .. foo end) | ||
if mutated ~= term then return mutated end | if mutated ~= term then return mutated end | ||
end | end |