BASE

Compromise

Compromise

Backend / API library · Free

A JavaScript NLP library with text parsing and transformations: it helps build language-aware search and user input processing locally.

Also known as: spencermountain/compromise; compromise-nlp; natural-language-processing-compromise

Resource illustration: Compromise

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Add language-aware text processing in JavaScript
  • Parse test text through the NLP library and check extracted values or transformations

Example workflow

A possible workflow; this is not a report of hands-on testing.

Add language-aware text processing in JavaScript.

Before you start

  • A data contract or HTTP workflow.
  • A project with a supported runtime.

Steps

  1. Define required English text entities or transformations.
  2. Parse test text through the NLP library and check extracted values or transformations.
  3. Add error handling and an integration check of the result.

Check your result

  • Invalid and missing data are handled predictably.
  • Types and the actual response agree; errors are not hidden.

Choosing Compromise

Add language-aware text processing in JavaScript

Choose this when

  • Add language-aware text processing in JavaScript
  • Parse test text through the NLP library and check extracted values or transformations

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Slashes are split as separate words; a tokenize-only build lacks full POS tagging and affects contraction parsing.

Frequently asked questions

What can you use for free in Compromise?

Code and local use under MIT.

What additional costs might arise with Compromise?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Compromise?

MIT for the code; dependencies have separate licenses.

How do you get started with Compromise?

Define required English text entities or transformations. Parse test text through the NLP library and check extracted values or transformations. Add error handling and an integration check of the result.

Which text matching forms does Compromise not support out of the box?

Parsing focuses on individual sentences: cross-sentence match requires a plugin. Nested regex-like patterns are replaced by sequential match calls; the README explicitly says dependency parsing is absent. Separate plugins add dates/durations, n-grams, and syllables.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Compromise
  • API
  • Development

Sources

Other resources