Skip to content

Ultra simple NodeJS Sentiment text analyzer based on afinn.

License

Notifications You must be signed in to change notification settings

voidzero666/simple-sentiment-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-sentiment-lib

Ultra simple NodeJS Sentiment text analyzer based on afinn.

Usage:

const analyse = require("simple-sentiment-lib");

const exampleData = "Lorem Ipsum dolor sit amet, consectetur adipiscing elit good great bad ";

var result = analyse(exampleData);

console.dir(result);

Result:

{
  score: 3,
  comparative: 0.2727272727272727,
  positive: {
    score: 6,
    comparative: 0.5454545454545454,
    words: [ 'good', 'great' ]
  },
  negative: { score: 3, comparative: 0.2727272727272727, words: [ 'bad' ] }
}

##Github: https://github.com/voidzero-development/simple-sentiment-lib

More usage examples:

https://github.com/voidzero-development/NodeJS-Sentiment

Credits

https://github.com/voidzero-development

https://github.com/marc0tjevp Buy Me A Coffee

About

Ultra simple NodeJS Sentiment text analyzer based on afinn.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published