Package-level declarations

The public API: PlatformSpellCheckerFactory, PlatformSpellChecker, the WordCheckResult hierarchy (CorrectWord / MisspelledWord), SpellingCorrection, SpLocale, and DictionaryScope.

The public API: PlatformSpellCheckerFactory, PlatformSpellChecker, the WordCheckResult hierarchy (CorrectWord / MisspelledWord), SpellingCorrection, SpLocale, and DictionaryScope.

The public API: PlatformSpellCheckerFactory, PlatformSpellChecker, the WordCheckResult hierarchy (CorrectWord / MisspelledWord), SpellingCorrection, SpLocale, and DictionaryScope.

The public API: PlatformSpellCheckerFactory, PlatformSpellChecker, the WordCheckResult hierarchy (CorrectWord / MisspelledWord), SpellingCorrection, SpLocale, and DictionaryScope.

Types

Link copied to clipboard
data class CorrectWord(val word: String) : WordCheckResult

Result for a correctly spelled word.

Link copied to clipboard

Scope of a custom-dictionary mutation.

Link copied to clipboard
data class MisspelledWord(val word: String, val suggestions: List<String>) : WordCheckResult

Result for a misspelled word, with up to maxSuggestions suggestions (closest first). suggestions may be empty when the platform offers no alternatives.

Link copied to clipboard

Platform-specific spell checker that provides spell checking functionality.

Platform-specific spell checker that provides spell checking functionality.

Desktop JVM implementation of PlatformSpellChecker.

iOS implementation of PlatformSpellChecker using UITextChecker.

Link copied to clipboard

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

PlatformSpellCheckerFactory creates platform spell checkers and provides a capability check.

Link copied to clipboard
data class SpellingCorrection(val misspelledWord: String, val startIndex: Int, val length: Int, val suggestions: List<String>)

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

Link copied to clipboard
data class SpLocale(val language: String, val country: String? = null)

Locale identifier for spell checking dictionaries.

Link copied to clipboard
sealed interface WordCheckResult

The outcome of checking a single word with PlatformSpellChecker.checkWord.

Functions

Link copied to clipboard

Returns true if result is a MisspelledWord. On the true branch result smart-casts to MisspelledWord, so its suggestions are accessible without a further is check.

Link copied to clipboard

JVM-only convenience conversions between SpLocale and java.util.Locale (Android/JVM).

JVM-only convenience conversions between SpLocale and java.util.Locale (Desktop/JVM).

Link copied to clipboard
fun SpLocale.toNSLocale(): NSLocale

iOS-only convenience conversions between SpLocale and NSLocale (Apple platforms).

Link copied to clipboard
fun NSLocale.toSpLocale(): SpLocale