compromise
Advanced tools
Comparing version 11.6.0 to 11.7.0
@@ -43,2 +43,8 @@ compromise uses semver, and pushes to npm frequently | ||
- more consistent `cardinal/ordinal` tagging for values | ||
##### 11.7.0 | ||
- expose internal `sentences().isQuestion()` method | ||
- `.join()` as an alias for `.flatten()` | ||
- slightly different behavior for wildcards in capture-groups [pull/472](https://github.com/spencermountain/compromise/pull/472) | ||
- `.possessives()` subset + `#Possessive` tagging fixes | ||
- hide massive `world` output for console.log of a term | ||
@@ -45,0 +51,0 @@ ##### 11.0.0 |
@@ -421,2 +421,7 @@ { | ||
}, | ||
"isQuestion": { | ||
"desc": "return only sentences that are questions", | ||
"returns": "Text", | ||
"example": "nlp('Dogs are funny. Are they funny? Yes they are.').sentences().isQuestion().out('array')\n//['are they funny']" | ||
}, | ||
"toExclamation": { | ||
@@ -724,2 +729,9 @@ "desc": "replace the sentence's end punctuation with an exclamation point", | ||
}, | ||
"possessives": { | ||
"strip": { | ||
"desc": "grab all the things that are possessive, like \"Homer Simpson's\"", | ||
"example": "nlp('moe’s tavern').possessives().strip()\n//moe", | ||
"returns": "array" | ||
} | ||
}, | ||
"topics": { | ||
@@ -726,0 +738,0 @@ "data": { |
@@ -5,3 +5,3 @@ { | ||
"description": "natural language processing in the browser", | ||
"version": "11.6.0", | ||
"version": "11.7.0", | ||
"main": "./builds/compromise.js", | ||
@@ -14,4 +14,4 @@ "types": "./compromise.d.ts", | ||
"scripts": { | ||
"test": "tape \"./test/unit/**/*.test.js\" | tap-dot", | ||
"testb": "TESTENV=prod tape \"./test/unit/**/*.test.js\" | tap-dot", | ||
"test": "tape \"./test/unit/**/*.test.js\" | tap-dancer", | ||
"testb": "TESTENV=prod tape \"./test/unit/**/*.test.js\" | tap-dancer", | ||
"buildTest": "TESTENV=prod node ./scripts/test.js", | ||
@@ -33,3 +33,4 @@ "test:types": "tsc --project test/types", | ||
"builds/", | ||
"docs/" | ||
"docs/", | ||
"compromise.d.ts" | ||
], | ||
@@ -40,18 +41,16 @@ "dependencies": { | ||
"devDependencies": { | ||
"amble": "0.0.5", | ||
"babel-preset-es2015": "^6.24.0", | ||
"amble": "0.0.6", | ||
"babel-preset-es2015": "6.24.1", | ||
"babelify": "7.3.0", | ||
"babili": "0.0.11", | ||
"babili": "0.1.4", | ||
"browserify": "13.0.1", | ||
"browserify-glob": "^0.2.0", | ||
"chalk": "^1.1.3", | ||
"codacy-coverage": "^2.0.3", | ||
"chalk": "2.4.1", | ||
"codacy-coverage": "3.0.0", | ||
"compromise-plugin": "0.0.8", | ||
"derequire": "^2.0.3", | ||
"eslint": "^3.1.1", | ||
"gaze": "^1.1.1", | ||
"nyc": "^8.4.0", | ||
"shelljs": "^0.7.2", | ||
"tap-dot": "^1.0.5", | ||
"tape": "^4.6.0", | ||
"derequire": "2.0.6", | ||
"eslint": "4.19.1", | ||
"nyc": "11.7.1", | ||
"shelljs": "0.8.1", | ||
"tap-dancer": "0.0.2", | ||
"tape": "4.9.0", | ||
"uglify-js": "2.7.0" | ||
@@ -58,0 +57,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 too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1383377
15
11
28248