def hasClosingPunctuation(text: str) ->bool:
    """
    Return True if the text ends with a period or question mark or exclamation mark, or something like '.)'

    Note that the colon, etc. is not included here because it's a special case.
    """
    if not text:
        return False
    for period in '.።?!':
        if text[-1] == period:
            return True
        for closingPunctuation in ')]"\'”’»›':
            if text.endswith(period + closingPunctuation):
                return True
    return False
