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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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