def score_emoticon_polarity
      happy = happy_emoticon?(words)
      sad = sad_emoticon?(words)

      polarities << 5.0 if happy && sad
      polarities << 8.0 if happy
      polarities << 2.0 if sad
    end
def score_emoticon_polarity
      happy = happy_emoticon?(words)
      sad = sad_emoticon?(words)

      polarities << 5.0 if happy && sad
      polarities << 8.0 if happy
      polarities << 2.0 if sad
    end
def score_emoticon_polarity happy = happy_emoticon? ( words ) sad = sad_emoticon? ( words ) polarities << 5.0 if happy && sad polarities << 8.0 if happy polarities << 2.0 if sad end
Checks if words has happy or sad emoji and adds polarity for it
Checks if words has happy or sad emoji and adds polarity for it