annotatedtext - v1.2.1

import { compose } from "annotatedtext";
import { remarkparse } from "remark-parse";
import { unified } from "unified";

const text = "This is a sentence.";
const nodes = unified()
.use(remarkparse, remarkoptions)
.parse(text) as annotatedtext.INode;

const annotatedtext = compose(text, nodes);
console.log(annotatedtext);

This module provides functions for building annotated text suitable for use with LanguageTool.

Interfaces

IAnnotatedtext
IAnnotation
INode
IOptions

Variables

defaults

Functions

build
collecttextnodes
compose
composeannotation