Correction

constructor(range: TextEditorRange, originalText: String, suggestions: List<Suggestion>)(source)

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.