New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

natural

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

natural - npm Package Compare versions

Comparing version 5.1.11 to 5.1.12

3

lib/natural/sentiment/SentimentAnalyzer.js

@@ -77,2 +77,3 @@ /*

this.vocabulary = Object.assign({}, languageFiles[type][language][0])
Object.setPrototypeOf(this.vocabulary, null)
if (type === 'senticon') {

@@ -97,3 +98,3 @@ Object.keys(this.vocabulary).forEach(word => {

if (stemmer) {
const vocaStemmed = {}
const vocaStemmed = Object.create(null)
for (const token in this.vocabulary) {

@@ -100,0 +101,0 @@ vocaStemmed[stemmer.stem(token)] = this.vocabulary[token]

{
"name": "natural",
"description": "General natural language (tokenizing, stemming (English, Russian, Spanish), part-of-speech tagging, sentiment analysis, classification, inflection, phonetics, tfidf, WordNet, jaro-winkler, Levenshtein distance, Dice's Coefficient) facilities for node.",
"version": "5.1.11",
"version": "5.1.12",
"homepage": "https://github.com/NaturalNode/natural",

@@ -6,0 +6,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc