File size: 293 Bytes
345855e
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)