compromise
Advanced tools
Comparing version 11.9.1 to 11.10.0
@@ -10,2 +10,7 @@ compromise uses semver, and pushes to npm frequently | ||
### v11 | ||
##### 11.10.0 | ||
- better honorific support, add `honorifics` feature to .normalize() | ||
- elipses bugfixes | ||
- replace unicode chars in `.normalize()` now by default | ||
- `acronyms().stripPeriods()` and `acronyms().addPeriods()` | ||
##### 11.9.0 | ||
@@ -12,0 +17,0 @@ - tag professions as `#Actor` |
/** Declaration file generated by dts-gen */ | ||
declare function compromise(str: string, lexicon: any): any; | ||
declare namespace compromise { | ||
declare namespace nlp { | ||
const version: string; | ||
function verbose(str: any): void; | ||
function tokenize(str: string): any; | ||
function plugin(obj: any): any; | ||
function clone(): any; | ||
} | ||
export = compromise; | ||
export = nlp; |
@@ -57,3 +57,3 @@ { | ||
"returns": "Text", | ||
"example": "nlp('Larry, Curly, and Moe').people().forEach((m,i)=> console.log(m.out()) )\n//curly\n//larry\n//moe" | ||
"example": "nlp('Larry, Curly, and Moe').people().forEach((m,i)=> m.people().toLowerCase() )\n//curly\n//larry\n//moe" | ||
}, | ||
@@ -630,2 +630,12 @@ "map": { | ||
"acronyms": { | ||
"stripPeriods": { | ||
"desc": "turn 'FBI' into 'F.B.I.'", | ||
"returns": "Text", | ||
"example": "nlp('Director of the F.B.I.').acronyms().stripPeriods().out()\n//Director of the FBI" | ||
}, | ||
"addPeriods": { | ||
"desc": "turn 'FBI' into 'F.B.I.'", | ||
"returns": "Text", | ||
"example": "nlp('Director of the FBI').acronyms().addPeriods().out()\n//Director of the F.B.I." | ||
}, | ||
"data": { | ||
@@ -632,0 +642,0 @@ "desc": "return an array of meta-data for the acronyms in this text", |
@@ -5,3 +5,3 @@ { | ||
"description": "natural language processing in the browser", | ||
"version": "11.9.1", | ||
"version": "11.10.0", | ||
"main": "./builds/compromise.js", | ||
@@ -8,0 +8,0 @@ "types": "./compromise.d.ts", |
@@ -203,2 +203,9 @@ <div align="center"> | ||
</td> | ||
<td> | ||
<div align="center"> | ||
<a href="https://beta.observablehq.com/@spencermountain/compromise-output"> | ||
Outputs | ||
</a> | ||
</div> | ||
</td> | ||
</tr> | ||
@@ -265,8 +272,8 @@ </table> | ||
<div align="center"> | ||
<a href="https://beta.observablehq.com/@spencermountain/compromise-tutorial-2"> | ||
Transformations | ||
<a href="https://beta.observablehq.com/@spencermountain/compromise-normalization"> | ||
Normalization | ||
</a> | ||
</div> | ||
<div align="center"> | ||
<sub>contractions, style, mood..</sub> | ||
<sub>case, whitespace, contractions..</sub> | ||
</div> | ||
@@ -297,3 +304,3 @@ </td> | ||
* <a href="https://github.com/spencermountain/compromise/wiki/Usage"><b>Normalization:</b></a> - handle looseness & variety of random text: | ||
* <a href="https://beta.observablehq.com/@spencermountain/compromise-normalization"><b>Normalization:</b></a> - handle looseness & variety of random text: | ||
```js | ||
@@ -300,0 +307,0 @@ doc = nlp("the guest-singer's björk at seven thirty.").normalize().out('text') |
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
1402810
27797
525