def emotion_score(words): strong_words = [ "amazing", "crazy", "insane", "love", "hate", "never", "always", "big", "huge", "shocking" ] score = 0 for w in words: if w["text"].lower() in strong_words: score += 2 return min(score, 100)