@staticmethod
def get_latin_soundex(token):
    """
        Get the phoneme code for the latin word
        Args:
            token: word
        Returns:
            (str): soundex code
        Examples:
            >>> token = 'availability'
            >>> PhonemeModel().get_latin_soundex(token)
            'A181870000'
        """
    token = token.upper()
    soundex = ''
    soundex += token[0]
    dictionary = {'BPV': '1', 'F': '2', 'C': '3', 'GJ': '4', 'KQ': '5',
        'SXZ': '6', 'DT': '7', 'L': '8', 'MN': '9', 'R': '10', 'AEIOUHWY': '.'}
    for char in token[1:]:
        for key in dictionary.keys():
            if char in key:
                code = dictionary[key]
                if code != soundex[-1]:
                    soundex += code
    soundex = soundex.replace('.', '')
    soundex = soundex[:10].ljust(10, '0')
    return soundex
