JSPM

sentiyapa.js

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q17014F
  • License BSD-2-Clause

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

Package Exports

  • sentiyapa.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sentiyapa.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.