def uncap_sentence(sent):
    """
    Workaround for tweets: sometimes the entire sentence is in upper case. If more than 99%
    of the sentence is in upper case, this function will convert it to lower case.
    :param sent: the tweet
    :return: the sentence, lower cased if it is all in upper case
    """
    ssent = sent.split()
    ssent_cap = [word for word in ssent if word[0].isupper()]
    if len(ssent_cap) * 1.00 / len(ssent) > 0.9:
        return sent.lower()
    else:
        return sent