def last_char_to_vowel(word):
    """Intended for abbreviations, returns the vowel for illative etc based
    on how the last character is pronounced in Finnish."""
    assert isinstance(word, str)
    for last in reversed(word):
        last = last.lower()
        for ch, prev in (('e', 'eébcçdgptvwz'), ('o', 'ohk'), ('ä',
            'äflmnrsx'), ('i', 'ij'), ('u', 'uq'), ('y', 'yü')):
            if last in prev:
                return ch
    return 'e'
