
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
sentiment-ptbr
Advanced tools
AFINN-based sentiment analysis for Node.js PS: modified by Aristeu Roriz for test use only
Sentiment is a Node.js module that uses the AFINN-111 wordlist to perform sentiment analysis on arbitrary blocks of input text. Sentiment provides serveral things:
npm install sentiment-ptbr
var sentiment = require('sentiment-ptbr');
var r1 = sentiment('Gatos são estúpidos!');
console.dir(r1); // Score: -2, Comparative: -0.666
var r2 = sentiment('Gatos são incríveis!');
console.dir(r2); // Score: 4, Comparative: 1
You can append and/or overwrite values from AFINN by simply injecting key/value pairs into a sentiment method call:
var sentiment = require('sentiment-ptbr');
var result = sentiment('Gatos são incríveis!', {
'gatos': 5,
'incríveis': 2
});
console.dir(result); // Score: 7, Comparative: 1.75
FAQs
AFINN-based sentiment analysis for Node.js PS: modified by Aristeu Roriz for test use only
The npm package sentiment-ptbr receives a total of 11 weekly downloads. As such, sentiment-ptbr popularity was classified as not popular.
We found that sentiment-ptbr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.