def get_case(word, other_tag="O"):
    """
    Detects the case of a given word.

    Parameters
    ----------
    word: str
        A string representing a word.
    other_tag: str
        A string representing the class name for words that are not ALL_CAPS
        or FIRST_CAP (default: 'O').

    Returns
    -------
    str
        A character representing the case of the word.
    """
    if word.isupper():
        return "A" #ALL_CAPS
    elif word.istitle():
        return "F" #FIRST_CAP
    else:
        return other_tag