SentiWord
SentiWord copied to clipboard
If a word is an adjective or an adverb, it can amplify or decrease the polarity of a noun that they are modifying.
var sw = require('sentiword'); var ex2 = sw("It is not good."); console.log(ex2);
{ sentiment: 0.25, avgSentiment: 0.25, objective: 0.5, positive: 0.375, negative: 0.125, ngrams: [ 'good' ], words: [ { '# POS': 'a', ID: '1068306', PosScore: '0.375', NegScore: '0.125', SynsetTerms: 'good' } ] }
This gives a good score when it should not