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); Copy
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.
https://languagetool.org/http-api/
Example
Description
This module provides functions for building annotated text suitable for use with LanguageTool.
See
https://languagetool.org/http-api/