Module:mg-spel: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 98: Line 98:
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" end)
if mutated ~= word then return mutated end
if mutated ~= term then return mutated end
end
end
--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" end)

Navigation menu