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

You Might Also Like
Top-Rated Free CRM Software Icon
Top-Rated Free CRM Software

216,000+ customers in over 135 countries grow their businesses with HubSpot

HubSpot is an AI-powered customer platform with all the software, integrations, and resources you need to connect your marketing, sales, and customer service. HubSpot's connected platform enables you to grow your business faster by focusing on what matters most: your customers.
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