Language is complicated and there's a gazillion words. Compromise is a javascript library that interprets and pre-parses text and makes some reasonable decisions so things are way easier. Compromise tries its best to parse text. it is small, quick, and often good-enough. It is not as smart as you'd think. Conjugate and negate verbs in any tense. Play between plural, singular and possessive forms. Interpret plain-text numbers. Handle implicit terms. Use it on the client-side or as an es-module. compromise is 180kb (minified). It's pretty fast. It can run on keypress. It works mainly by conjugating all forms of a basic word list. Decide how words get interpreted or make heavier changes with a compromise-plugin. Parse text without running POS-tagging. Pre-parse any match statements for faster lookups. It is not the most accurate, or clever nlp library, but found its niche as an easy, small library that can run everywhere.

Features

  • compromise is a rule-based, 'brill-inspired' natural-language processing library
  • Prefers the smallest, least-fancy solutions to getting a text into a manageable form
  • There is seldom any fancy computer-science, or weird linguistic acronyms to learn
  • It was built by finding common patterns in random linguistic data
  • It's written in ES6 javascript, and compiled to ES5 with Babel
  • We ship our lexicon in a very-engineered format

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow compromise

compromise Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of compromise!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Text Processing Software, JavaScript Natural Language Processing (NLP) Tool

Registered

2021-06-10