WindowsSpellChecker
High-level wrapper for the Windows Spell Checking API.
This class provides a Kotlin-friendly interface to the Windows native spell checker, which is available on Windows 8 and later.
Usage:
val spellChecker = WindowsSpellChecker.create("en-US")
if (spellChecker != null) {
val errors = spellChecker.checkText("Helllo world")
spellChecker.close()
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
Adds a word to the user dictionary.
Link copied to clipboard
Checks the spelling of the provided text.
Link copied to clipboard
Gets spelling suggestions for a misspelled word.
Link copied to clipboard
Ignores a word for this session.
Link copied to clipboard
Checks if a single word is spelled correctly.
Link copied to clipboard
No-op on Windows: the basic ISpellChecker VTable does not expose a remove operation. Removal would require ISpellChecker2 (Windows 8.1+), which is not currently bound. Logs a warning so callers know the request was dropped.