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 11.9.1 to 11.10.0

5

changelog.md

@@ -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`

6

compromise.d.ts
/** 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">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Outputs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</a>
</div>
</td>
</tr>

@@ -265,8 +272,8 @@ </table>

<div align="center">
<a href="https://beta.observablehq.com/@spencermountain/compromise-tutorial-2">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Transformations &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<a href="https://beta.observablehq.com/@spencermountain/compromise-normalization">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Normalization &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</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

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