def retrieve_tweet_text(tweet):
    """
    Retrieves the text that appears in the tweet object
    :param tweet: a JSON tweet object
    :return: the text of the tweet all in lowercase
    """
    if hasattr(tweet, 'extended_tweet'):
        return tweet.extended_tweet['full_text'].lower()
    else:
        return tweet.text.lower()