Correction

data class Correction(val range: TextEditorRange, val originalText: String, val suggestions: List<Suggestion>)(source)

Represents a correction for a portion of text within a sentence.

Parameters

range

The document-level range where the correction applies. This is an absolute position in the document, not relative to sentence start.

originalText

The original text that was identified as incorrect.

suggestions

List of suggested replacements, ordered by likelihood.

Constructors

Link copied to clipboard
constructor(range: TextEditorRange, originalText: String, suggestions: List<Suggestion>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard