def scalar_inc_dec(word, valence, isCap_diff):
    scalar = 0.0
    word_lower = word.lower()
    if word_lower in BOOSTER_DICT:
        scalar = BOOSTER_DICT[word_lower]
        if valence < 0: scalar *= -1
        #check if booster/dampener word is in ALLCAPS (while others aren't)
        if word.isupper() and isCap_diff:
            if 0 > valence: scalar += c_INCR
            else:  scalar -= c_INCR
    return scalar
dataset/ETHPy150Open cjhutto/vaderSentiment/vaderSentiment/vaderSentiment.py/scalar_inc_dec/swapped operands of `>`