SpellingCorrection

data class SpellingCorrection(val misspelledWord: String, val startIndex: Int, val length: Int, val suggestions: List<String>)(source)

Represents a spelling correction for a misspelled word in a text.

Constructors

Link copied to clipboard
constructor(misspelledWord: String, startIndex: Int, length: Int, suggestions: List<String>)

Properties

Link copied to clipboard
val length: Int

The length of the misspelled word.

Link copied to clipboard

The word that was identified as misspelled.

Link copied to clipboard

The starting character index of the misspelled word in the original text.

Link copied to clipboard

A list of suggested corrections for the misspelled word. It may be empty if the word is misspelled, and there are no suggestions available.