import re


def vader_preprocess(text):
    """
    Alternate tweet processing for VADER, which can handle punctuation and capitalization.
    VADER can handle URLs. URLs don't influence sentiment scores, so they are removed
    """
    text = ' '.join(re.sub('((www\.[\S]+)|(https?://[\S]+))', '',text).split())
    text = ' '.join(re.sub('^\n', '',text).split())
    text = ' '.join(re.sub('amp;', '',text).split())
    text = ' '.join(re.sub('^rt', '',text).split())
    return text