Socket
Socket
Sign inDemoInstall

sentiyapa.js

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sentiyapa.js

A quick fix sentiment analyzer written in Javascript. Uses AFINN word list for computing sentiment score.


Version published
Weekly downloads
2
Maintainers
1
Install size
29.8 kB
Created
Weekly downloads
 

Readme

Source

sentiyapa.js

A quickfix sentiment analyzer written in javascript. Uses AFINN(http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010) word list to compute scores in a give text string.

Installation

Run npm install sentiyapa to install the package

Usage

var s = new sentiyapa.Sentiyapa();
s.init(); //initialize sentiyapa

Now to compute sentiment score for a given string use:

s.score("your text here")

This function will return a number. Positive numbers indicate a positive sentiment and negative numbers indicate negative sentiments. The |number| indicates the extent of the sentiment.

Keywords

FAQs

Last updated on 11 Nov 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc