def encode(self, word):
word = unicode_normalize('<STR_LIT>', text_type(word.upper()))<EOL>for i, j in self._substitutions:<EOL><INDENT>word = word.replace(i, j)<EOL><DEDENT>word = word.translate(self._trans)<EOL>return '<STR_LIT>'.join(<EOL>c<EOL>for c in self._delete_consecutive_repeats(word)<EOL>if c in self._uc_set<EOL>)<EOL>
Return the Phonem code for a word.

        Parameters
        ----------
        word : str
        The word to transform

        Returns
        -------
        str
            The Phonem value

        Examples
        --------
        >>> pe = Phonem()
        >>> pe.encode('Christopher')
        'CRYSDOVR'
        >>> pe.encode('Niall')
        'NYAL'
        >>> pe.encode('Smith')
        'SMYD'
        >>> pe.encode('Schmidt')
        'CMYD'