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 Versions

1
17

13.1.0

Diff

Changelog

Source

13.1.0

  • significant (~30%) speed up of parsing
  • change sensitivity of input in .lookup() for major speed improvements.
  • improved typescript types
  • subtle changes to internal caching
  • adds 'oneOf' match syntax param
  • fixes [word?] syntax parsing
spencermountain
published 13.0.0 •

Changelog

Source

13.0.0 [Feb 2020]

major changes to .export() and [capture] group match-syntax.

  • [breaking] move .export() and .load() methods to plugin (compromise-export)
    • change .export() format - this hasn't worked properly since v12. (mis-parsed contractions) see #669
  • [breaking] split compromise-output into compromise-html and compromise-hash plugins
  • [breaking] .match('foo [bar]') no-longer returns 'bar'. (use .match('foo [bar]', 0))
  • [breaking] capture groups are no longer merged. .match('[foo] [bar]') returns two groups accessible with the new .groups() function
  • [breaking] change .sentences() method to return only full-sentences of matches (use .all() instead)

modifications:

  • [fix] - nlp.clone() - hasn't worked properly, since v12. (@Drache93)
  • [fix] - issues with greedy capture [*] and [.+] -(@Drache93) 💛
  • add whitespace properties (pre+post) to default json output (suppress with .json({ whitespace: false }))
  • .lookup({ key: val }) with an object now returns an object back ({val: Doc})
  • add nlp constructor as a third param to .extend()
  • support lexicon object param in tokenize - .tokenize('my word', { word: 'tag' })
  • clean-up of scripts and tooling
  • improved typescript types
  • add support for some french contractions like j'aime -> je aime
  • allow null results in .map() function
  • better typescript support
  • allow longer acronyms
  • [fix] - offset length issue
  • [new] - add new named-match syntax, with .groups() method (@Drache93)
  • [new] - add nlp.fromJSON() method
  • [new] - add a new compromise-tokenize.js build, without the tagger, or data included.
spencermountain
published 13.0.0-rc1 •

spencermountain
published 12.3.0 •

Changelog

Source

12.3.0 [Jan 2020]

  • prefer @titleCase instead of #TitleCase tag
  • update dependencies
  • fix case-sensitive paths
  • fix greedy-start match condition regression #651
  • fix single period sentence runtime error
  • fix potentially-unsafe regexes
  • improved tagging for '-ed' verbs (#616)
  • improve support for auxilary-pastTense ('was lifted') verb-phrases
  • more robust number-tagging regexes
  • setup typescript types for plugins #661 (thanks @Drache93!)
  • verb conjugation and tagger bugfixes
  • disambiguate between acronyms & yelling
spencermountain
published 12.2.1 •

Changelog

Source

12.2.1 [Dec 2019]

  • fix 'aint' contraction
  • make Doc.world writable
  • update deps
  • more tests
  • fix shared period with acronym at end of sentence
  • fix some mis-classification of contraction
  • fix over-active emoji regex
  • tag 'cookin', 'hootin' as Gerund
  • support unicode single-quote symbols in contractions
spencermountain
published 12.2.0 •

Changelog

Source

12.2.0 [Dec 2019]

  • improved splitting in .nouns()
  • add .nouns().adjectives() method
  • add concat param to .pre() and .post()
  • allow ellipses at start of term "....so" in @hasEllipses
  • fix matches with optional-end foo?$ match syntax
  • add typescript types for subsets
spencermountain
published 12.1.0 •

Changelog

Source

12.1.0 [Nov 2019]

  • add 'sideEffect:false' flag to build
  • considerable speedup (20%) in tagger
  • ensure trimming of whitespace for root/clean/reduced text formats
  • fix client-side logging
  • more flexible params to replace() and replaceWith()
spencermountain
published 12.0.0 •

Changelog

Source

12.0.0   :postal_horn: [Nov 2019]

  • see Release Notes
spencermountain
published 12.0.0-rc2 •

spencermountain
published 12.0.0-rc1 •

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