Function compose

  • Compose an annotated text from an AST and some text suitable for use with LanguageTool.

    Parameters

    • text: string

      The text to parse.

    • nodes: INode

      The AST to use.

    • Optionaloptions: IOptions

      Options to control how the text is parsed.

    Returns IAnnotatedtext

    An annotated text suitable for use with LanguageTool.