    def _strip_punc_if_word(token):
        """
        Removes all trailing and leading punctuation
        If the resulting string has two or fewer characters,
        then it was likely an emoticon, so return original string
        (ie ":)" stripped would be "", so just return ":)"
        """
        stripped = token.strip(string.punctuation)
        if len(stripped) <= 2:
            return token
        return stripped
Removes all trailing and leading punctuation
If the resulting string has two or fewer characters,
then it was likely an emoticon, so return original string
(ie ":)" stripped would be "", so just return ":)"
vaderSentiment/vaderSentiment.py