Table of Contents

Method CorrectAsync

Namespace
LMKit.TextEnhancement
Assembly
LM-Kit.NET.dll

CorrectAsync(string, CancellationToken)

Asynchronously corrects grammar and spelling errors in the specified text.

public Task<string> CorrectAsync(string text, CancellationToken cancellationToken = default)

Parameters

text string

The text to correct.

cancellationToken CancellationToken

Optional. A CancellationToken to handle cancellation requests.

Returns

Task<string>

A task that represents the asynchronous operation, containing the corrected text.

Remarks

This method handles text of any size and preserves the original content's structure and formatting.