def set_substitution(self, word, substitution):
<EOL>raw_word = re.escape(word)<EOL>raw_substitution = substitution<EOL>case_word = re.escape(normalize(word, preserve_case=True))<EOL>case_substitution = normalize(substitution, preserve_case=True)<EOL>word = re.escape(normalize(word))<EOL>substitution = normalize(substitution)<EOL>raw_sub = (re.compile(r'<STR_LIT>'.format(word=raw_word), re.IGNORECASE), raw_substitution)<EOL>case_sub = (re.compile(r'<STR_LIT>'.format(word=case_word), re.IGNORECASE), case_substitution)<EOL>sub = (re.compile(r'<STR_LIT>'.format(word=word), re.IGNORECASE), substitution)<EOL>sub_group = (sub, case_sub, raw_sub)<EOL>if sub_group not in self._substitutions:<EOL><INDENT>self._log.info('<STR_LIT>'.format(word=word, sub=substitution))<EOL>self._substitutions.append(sub_group)<EOL><DEDENT>
Add a word substitution
:param word: The word to replace
:type  word: str

:param substitution: The word's substitution
:type  substitution: str