Socket
Socket
Sign inDemoInstall

compromise

Package Overview
Dependencies
Maintainers
3
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

compromise - npm Package Compare versions

Comparing version 13.9.1 to 13.9.2

2

package.json

@@ -5,3 +5,3 @@ {

"description": "modest natural language processing",
"version": "13.9.1",
"version": "13.9.2",
"main": "./builds/compromise.js",

@@ -8,0 +8,0 @@ "unpkg": "./builds/compromise.min.js",

@@ -19,3 +19,3 @@ export as namespace nlp

(text?: string, lexicon?: Lexicon): nlp.ExtendedDocument<D, W, Ph>
/** tozenize string */
/** tokenize string */
tokenize(text: string, lexicon?: Lexicon): nlp.ExtendedDocument<D, W, Ph>

@@ -201,23 +201,23 @@ /** mix in a compromise-plugin */

/** return matching patterns in this doc */
match(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
match(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** return a named group in a match */
match(match: string | ExtendedDocument<Ext, W, Ph>, group:string|number): ExtendedDocument<Ext, W, Ph>
/** return all results except for this */
not(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
not(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** return only the first match */
matchOne(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
matchOne(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** return each current phrase, only if it contains this match */
if(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
if(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** Filter-out any current phrases that have this match */
ifNo(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
ifNo(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** Return a boolean if this match exists */
has(match: string | ExtendedDocument<Ext, W, Ph>, options:any): boolean
has(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): boolean
/** search through earlier terms, in the sentence */
lookBehind(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
lookBehind(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** search through following terms, in the sentence */
lookAhead(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
lookAhead(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** return the terms before each match */
before(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
before(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** return the terms after each match */
after(match: string | ExtendedDocument<Ext, W, Ph>, options:any): ExtendedDocument<Ext, W, Ph>
after(match: string | ExtendedDocument<Ext, W, Ph>, options?:any): ExtendedDocument<Ext, W, Ph>
/** quick find for an array of string matches */

@@ -349,3 +349,3 @@ lookup(matches: string[]): ExtendedDocument<Ext, W, Ph>

emoticons(n?: number): ExtendedDocument<Ext, W, Ph>
/** return athings like `💋` */
/** return things like `💋` */
emoji(n?: number): ExtendedDocument<Ext, W, Ph>

@@ -665,3 +665,3 @@ /** return things like `'@nlp_compromise'`*/

/** is it multiple words combinded */
/** is it multiple words combined */
hasContraction(): boolean

@@ -668,0 +668,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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