sad_panda is a gem featuring tools for sentiment analysis of natural language: positivity/negativity and emotion classification.
Emotion Range: "anger", "disgust", "joy", "surprise", "fear", "sadness"
Polarity Range: 0 to 10
Add this line to your application's Gemfile:
gem 'sad_panda'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sad_panda
require 'sad_panda'
SadPanda.emotion("my lobster collection makes me happy!")
=> "joy"
SadPanda.polarity("I love cactuses!")
=> 10.0
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request