def fix_caps(word):
    """Used to compare words, irrespective of their capitalisation

    :param word: the word to be fixed
    :type word: <str>
    :return: <str>
    """
    if word.isupper() and word != 'I':
        """eg: word -> 'AAA', result -> 'aaa'
        """
        word = word.lower()
    elif word[0].isupper():
        """eg: word -> 'AvA', result -> 'Ava'
        """
        word = word.lower().capitalize()
    else:
        """eg: word -> 'aVA', result -> 'ava'
        """
        word = word.lower()
    return word
