compromise
Advanced tools
Changelog
13.1.0
.lookup()
for major speed improvements.[word?]
syntax parsingChangelog
13.0.0 [Feb 2020]
major changes to .export()
and [capture] group
match-syntax.
compromise-output
into compromise-html
and compromise-hash
plugins.match('foo [bar]')
no-longer returns 'bar'. (use .match('foo [bar]', 0)
).match('[foo] [bar]')
returns two groups accessible with the new .groups()
function.sentences()
method to return only full-sentences of matches (use .all()
instead)modifications:
.json({ whitespace: false })
).lookup({ key: val })
with an object now returns an object back ({val: Doc}).extend()
.tokenize('my word', { word: 'tag' })
j'aime -> je aime
.map()
functionnlp.fromJSON()
methodcompromise-tokenize.js
build, without the tagger, or data included.Changelog
12.3.0 [Jan 2020]
@titleCase
instead of #TitleCase
tagChangelog
12.2.1 [Dec 2019]
Gerund
Changelog
12.2.0 [Dec 2019]
.nouns().adjectives()
methodconcat
param to .pre()
and .post()
@hasEllipses
foo?$
match syntaxChangelog
12.1.0 [Nov 2019]
replace()
and replaceWith()