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
Monitor your whole IT Infrastructure Icon
Monitor your whole IT Infrastructure

Know what's up and what's new: Monitor all your systems, devices, traffic and applications.

Caters to tech staff, system Administrators, and companies of any size, from small and medium sized businesses to enterprises that need their IT network to be reliable and easy to monitor in real-time. Equipped with an easy-to-use, intuitive interface with a cutting-edge monitoring engine. PRTG optimizes connections and workloads as well as reducing operational costs by avoiding outages while saving time and controlling service level agreements (SLAs).
Start Your Free PRTG Trial 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