code: function polarity(values, inject) {
    var words = values || []
    var index = words.length || 1
    var positivity = 0
    var negativity = 0
    var positive = []
    var negative = []
    var value
    var weight
  
    while (index--) {
      value = words[index]
      weight = getPolarity(value, inject)
  
      if (!weight) {
        continue
      }
  
      if (weight > 0) {
        positive.push(value)
        positivity += weight
      } else {
        negative.push(value)
        negativity += weight
      }
    }
  
    return {
      polarity: positivity + negativity,
      positivity: positivity,
      negativity: negativity,
      positive: positive,
      negative: negative
    }
  }
docs: /* Define `polarity`