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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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