Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sentiment-analysis

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sentiment-analysis

Sentiment analysis module using AFINN-111

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
23
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

sentiment-analysis

Build Status Dependency Status devDependency Status Code Climate

AFINN-111 based Sentiment analysis module

Install

npm install sentiment-analysis --save

Usage

var sentimentAnalysis = require('sentiment-analysis');

sentimentAnalysis('Dinosaurs are awesome!'); // +0.4
sentimentAnalysis('Everything is stupid');  // -0.2
sentimentAnalysis('Windows is very unstable');  // -0.2
sentimentAnalysis('London is gloomy today because of all the smog');  // -0.4
sentimentAnalysis('I am so grateful for all the presents, thank you!');  // +0.5
sentimentAnalysis('Really enjoying the warm weather');  // +0.3
sentimentAnalysis('It was a catastrophic disaster');  // -0.6

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

Keywords

FAQs

Package last updated on 14 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc