correctSpelling

fun correctSpelling(segment: WordSegment, correction: String)(source)

Replace a misspelled word with the chosen correction.

Removes the word's spell-check decoration and applies the replacement to textState.

Parameters

segment

The misspelled WordSegment to correct.

correction

The replacement text.