SpellingError

data class SpellingError(val startIndex: Int, val length: Int, val correctiveAction: CorrectiveAction, val replacement: String? = null)(source)

Represents a spelling error found in text.

Constructors

Link copied to clipboard
constructor(startIndex: Int, length: Int, correctiveAction: CorrectiveAction, replacement: String? = null)

Properties

Link copied to clipboard

The type of corrective action suggested.

Link copied to clipboard
val length: Int

The length of the misspelled word.

Link copied to clipboard

Suggested replacement (for auto-correct actions).

Link copied to clipboard

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