Two Negatives Make a Positive

node v8.11.4
version: 2.0.0
endpointsharetweet
"wink-sentiment" handles negation intelligently; for example, phrase "good product" will get a positive score whereas "not a good product" gets a negative score. Here is a little more complex example:
// Load wink sentiment package. var sentiment = require( 'wink-sentiment' ); // Let us try a product review with double negatives! var result = sentiment( "I wasn't unconvinced about buying decision" ); console.log( result );
Loading…

no comments

    sign in to comment