
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
sentiment-and-keyword
Advanced tools
Analyze strings based on sentiment and keyword strength using synonyms and related concepts
See https://www.npmjs.com/package/sentiment-and-keyword
npm i sentiment-and-keyword
const sentkey = require('sentiment-and-keyword');
// Set your text to analyzed *required
let text = "The text you want to be analyzed";
// Set your keywords to be used for analysis *required
let keywords = ["Independent", "Honest", "Collaborative", "Brilliant", "Caring"];
sentkey.analyze(text,keywords,function(err,res){
if(err){
console.log(err);
return
}
console.log(res);
})
{
"text": "The text you want to be analyzed",
"sentiment_score": 0,
"sentiment_status": "Neutral",
"sentiment_calculation": [
{"Independent": 0},
{"Honest": 0},
{"Collaborative": 0},
{"Brilliant": 0},
{"Caring": 0}
],
"sentiment_comparative": "0",
"strength_tracker": [
{"keyword": "Independent", "score": 0},
{"keyword": "Honest", "score": 0},
{"keyword": "Collaborative", "score": 0},
{"keyword": "Brilliant", "score": 0},
{"keyword": "Caring", "score": 0}
],
"graph_data": [
[
"Keyword",
"Percentage",
{ "role": "style" }
],
["keyword1", 0, "#color"],
["keyword3", 0, "#color"],
["keyword4", 0, "#color"],
["keyword5", 0, "#color"],
["keyword6", 0, "#color"],
]
};
FAQs
Analyze strings based on sentiment and keyword strength using synonyms and related concepts
The npm package sentiment-and-keyword receives a total of 1 weekly downloads. As such, sentiment-and-keyword popularity was classified as not popular.
We found that sentiment-and-keyword 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.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.