sentiment-analysis
AFINN-111 based Sentiment analysis module
Install
npm install sentiment-analysis --save
Usage
var sentimentAnalysis = require('sentiment-analysis');
sentimentAnalysis('Dinosaurs are awesome!');
sentimentAnalysis('Everything is stupid');
sentimentAnalysis('Windows is very unstable');
sentimentAnalysis('London is gloomy today because of all the smog');
sentimentAnalysis('I am so grateful for all the presents, thank you!');
sentimentAnalysis('Really enjoying the warm weather');
sentimentAnalysis('It was a catastrophic disaster');
sentiment-analysis will return a score between -1 and +1, where negative numbers represent a negative overall sentiment.
Testing
npm test
See unit test, integration testing results on Travis CI
Development
See the gulpfile.js
for documentation of build process.
License
MIT � Alicia Sykes