rename regexTranslator to codeTranslator