npm install compromise-align
const nlp = nlp let doc = let html = docdocumentinnerHTML = html
generate html output to line-up matches in a text, for easy viewing.
Demo
Usage
in terms of CSS styling, it does most of the layout, and tags the middle text as .matchText
.
You can style it however you'd like.
the method returns html-strings by default, but the library uses Jason Miller's htm library so you can return React Components, or anything:
doc
work-in-progress
MIT