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.8.0

Diff

Changelog

Source

13.8.0 [Dec 2020]

  • [change] improved support for fractions in numbers-plugin #793
  • [change] remove zero-width characters in normalized output #759
  • [change] improved Person tagging with particles #794
  • [change] improved i18n Person names
  • [change] tagger+tokenization fixes
  • [change] remove empty results from .out('array') #795
  • [change] .tokenize() runs any postProcess() scripts from plugins
  • [change] improved support for lowercase acronyms
  • [change] - support years like '97
  • [change] - change tokenizer for '20-aug'
  • [change] - update deps of all plugins
  • [fix] - NumberRange tagging issue #795
  • [fix] - improved support for ordinal number ranges
  • [fix] - improved regex support in match-syntax
  • [fix] - improved support for ~soft~ match syntax #797
  • [fix] - better handling of {0,n} match syntax
  • [new] - new plugin strict-match
  • [new] - set NounPhrase, VerbPhrase tags in nlp-sentences plugin
  • [new] - .phrases() method in nlp-sentences plugin
  • [new] - support .apppend(doc) and .prepend(doc)
  • [new] - values.normalize() method
spencermountain
published 13.7.0 •

Changelog

Source

13.7.0 [Oct 2020]

  • [change] many misc tagging fixes
    • 'if' is now a #Preposition
    • possessive pronouns are #Pronoun and #Possessive
    • more phrasal verbs
    • make #Participle tag #PastTense
    • favor #PastTense over #Participle interpretation in tagger
  • [change] @hasHyphen returns false for sentence dashes
  • a lot more testing
spencermountain
published 13.6.0 •

Changelog

Source

13.6.0 [Oct 2020]

  • [new] first-attempt at verbs().subject() method
  • [change] avoid conjugating imperative tense - 'please close the door'
  • [change] misc tagging fixes #786
  • [change] .nouns() results split on quotations #783
  • [change] NumberRange must be < 4 digits #735
  • [change] reduction in #Person tag false-positives
spencermountain
published 13.5.0 •

Changelog

Source

13.5.0 [Sep 2020]

  • [new] add .parseMatch() method for pre-parsing match statements
spencermountain
published 13.4.0 •

Changelog

Source

13.4.0 [Sep 2020]

  • [change] stop including adverbs and some auxiliaries in .conjugate() results
  • [change] .append() and .prepend() on an empty doc now creates a new doc
  • [new] add verbs().toParticiple() method (add to observables/verb)
  • [new] add sentences().toParticiple() method (add to observables/verb)
  • [fix] some verb-tagging issues
  • [fix] contractions issue in .clone()
  • [fix] try harder to retain modal-verbs in conjugation - 'i should drive' no-longer becomes 'i will drive'
spencermountain
published 13.3.2 •

Changelog

Source

13.3.2 [Aug 2020]

  • fix for offset issue #771
  • fix for {min,max} syntax #767
  • typescript fixes
  • update deps
spencermountain
published 13.3.1 •

Changelog

Source

13.3.1 [June 2020]

-support unicode spaces for #759

  • major improvements to compromise-plugin-dates (1.0.0)
spencermountain
published 13.3.0 •

Changelog

Source

13.3.0 [June 2020]

  • bugfixes (conjugation and tagging) 752, 737, 725, 751, 743 748, 755, 758, 706, 761
  • support tokenized array as input
  • update deps
  • bugfix updates to plugin-sentences, and plugin-dates
spencermountain
published 13.2.0 •

Changelog

Source

13.2.0 [May 2020]

  • deprecate .money() and favour overloaded method in compromise-numbers plugin
  • add .percentages() and .fractions() to compromise-numbers plugin
  • add .hasAfter() and .hasBefore() methods
  • change handling of slashes
  • add .world() method to constructor
  • add more abbreviations
  • fix regex backtracking #739
  • tokenize build:
    • remove conjugation and inflection data
    • remove conjugation and inflection functions
  • remove sourcemap from build process (too big)
  • improvements to .numbers().units()
  • fix for linked-list runtime error #744 with contractions
spencermountain
published 13.1.1 •

Changelog

Source

13.1.1

  • fix verbs.json() runtime-error
  • improve empty .lists() methods
  • allow custom tag colors
  • test new github action workflow
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