Huge News!Announcing our $40M Series B led by Abstract Ventures.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 6.7.2 to 6.8.0

26

lib/natural/brill_pos_tagger/lib/Lexicon.js

@@ -27,14 +27,16 @@ /*

// Constructor creates a Lexicon for language
function Lexicon (language, defaultCategory, defaultCategoryCapitalised) {
switch (language) {
case 'EN':
this.lexicon = englishLexicon
break
case 'DU':
this.lexicon = dutchLexicon
break
default:
this.lexicon = dutchLexicon
break
}
function Lexicon (language, defaultCategory, defaultCategoryCapitalised, extendedLexicon) {
const lexicon = (() => {
switch (language) {
case 'EN':
return englishLexicon
case 'DU':
return dutchLexicon
default:
return dutchLexicon
}
})()
this.lexicon = Object.assign(lexicon, extendedLexicon || {})
if (defaultCategory) {

@@ -41,0 +43,0 @@ this.defaultCategory = defaultCategory

{
"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": "6.7.2",
"version": "6.8.0",
"homepage": "https://github.com/NaturalNode/natural",

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

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