Socket
Socket
Sign inDemoInstall

compromise

Package Overview
Dependencies
Maintainers
2
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 8.2.0 to 9.0.0

builds/compromise.es6.js

10

changelog.md

@@ -5,2 +5,11 @@ `compromise` uses semver, with occasional releases to npm and bower.

### v.9  
* 9.0.0
- rename `Term.tag` object to `Term.tags` so the `.tag()` method can work throughout more-consistently
- fix 'Auxillary' tag typo to 'Auxiliary'
- optimisation of .match(), and tagset - significant speedup!
- adds `.tagger()` method and cleanup extra params
- adds `wordStart` and `wordEnd` offsets to `.out('offset')` for whitespace+punctuation
- new `.has()` method for faster lookups
### v.8  

@@ -10,2 +19,3 @@ * 8.0.0 - less-ambitious date-parsing of nl-date forms

* 8.1.0 - add `nlp.tokenize()` method for disabling pos-tagging of input
* 8.2.0 - add `nlp.out('index')` method, 12 bugs

@@ -12,0 +22,0 @@ ### v.7   :postal_horn:

@@ -172,2 +172,7 @@ 'use strict';

example: 'nlp(\'We\u2019re here, we\u2019re clear, we don\u2019t want anymore bears.\').clauses().ifNo(\'anymore\').out()\n//We\'re here, we\'re clear,'
},
has: {
desc: 'quick check to see if this match is found',
returns: 'Boolean',
example: 'nlp(\'I am the very model of a modern Major-General\').has(\'#Pronoun\')\n//true,'
}

@@ -174,0 +179,0 @@ },

12

docs/to_markdown.js
const generic = require('./generic');
let str = '#generic methods';
let str = '# generic methods';

@@ -7,3 +7,3 @@ Object.keys(generic).forEach((header) => {

###${header}:`;
### ${header}:`;
Object.keys(generic[header]).forEach((fn) => {

@@ -13,3 +13,3 @@ let code = '```js\n ' + generic[header][fn].example + '\n```';

####[${fn}()](https://nlp-expo.firebaseapp.com/docs#${header}/${fn})
#### [${fn}()](https://nlp-expo.firebaseapp.com/docs#${header}/${fn})

@@ -24,3 +24,3 @@ > *${generic[header][fn].desc}*

str += `
#subset methods
# subset methods
`;

@@ -33,3 +33,3 @@

###${header}()`;
### ${header}()`;
Object.keys(subsets[header]).forEach((fn) => {

@@ -39,3 +39,3 @@ let code = '```js\n ' + subsets[header][fn].example + '\n```';

####[${fn}()](https://nlp-expo.firebaseapp.com/docs#${header}/${fn})
#### [${fn}()](https://nlp-expo.firebaseapp.com/docs#${header}/${fn})

@@ -42,0 +42,0 @@ > *${subsets[header][fn].desc}*

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

"description": "natural language processing in the browser",
"version": "8.2.0",
"version": "9.0.0",
"main": "./builds/compromise.js",

@@ -38,3 +38,3 @@ "repository": {

"derequire": "^2.0.3",
"efrt": "0.0.2",
"efrt": "0.0.4",
"eslint": "^3.1.1",

@@ -41,0 +41,0 @@ "gaze": "^1.1.1",

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

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