simple-sentiment-lib
Ultra simple NodeJS Sentiment text analyzer based on afinn.
Usage:
const analyse = ; const exampleData = "Lorem Ipsum dolor sit amet, consectetur adipiscing elit good great bad "; var result = ; consoledirresult;
Result:
score: 3 comparative: 02727272727272727 positive: score: 6 comparative: 05454545454545454 words: 'good' 'great' negative: score: 3 comparative: 02727272727272727 words: 'bad'
Github:
https://github.com/voidzero-development/simple-sentiment-lib
More usage examples:
https://github.com/voidzero-development/NodeJS-Sentiment