github spencermountain/compromise 14.20.0

45 minutes ago
  • [new] - html, markdown, unist, and subtitle plugins
  • [new] - add plugin callback for .replace() events
  • [fix] - #1254 #1255 #1256 issues parsing large numbers
  • [fix] - #1257 fraction/ordinal date interpretation
  • [fix] - #1258 verb normalization
  • [fix] - #1259 number-splitter bug
  • [fix] - #1253 fix match escaping for + and /
  • [fix] - #1262 Preserve punctuation in quotation text output
  • [fix] - #1264 and #1263 inflection issues
  • [fix] - problematic regex fixes
  • [fix] - whitespace tokenization in match strings
  • [fix] - offset issue with pre punctuation
  • [change] - number parsing details
      • support possessive numbers like "2023's turmoil"
      • interpret 'twenty twenty six' as year (from 2010-2040)
      • concatenated number-parsing - "sixty fifteen and thirty five"
      • numbers().isValid() methods
      • "thousands of people" no longer number 1,000
      • remove invalid ordinals like -5.2rd
  • [change] - match-syntax fixes
      • foo* now consistantly means zero or more
      • greedy and-block (a && b)+ support in match-syntax
      • lookahead fix: the * (#Noun|#Verb) now matches 'the big dog'
  • [change] - improvements to isPossessive()
  • [plugin] - compromise-dates 3.11.0
  • [new] - {noRegex:true} option on parseMatch to avoid ugc-reDos attacks
  • [new] - npx bin CLI command
  • [new] - .debug('highlight')

Don't miss a new compromise release

NewReleases is sending notifications on new releases.