Ecosystem
Native spell check
PlatformSpellCheckerKt — a Kotlin Multiplatform wrapper over each OS's native spell-check engine.
Spell-checking is a deep, locale-heavy domain. The right answer is to use the same engine the OS uses everywhere else — and the Kotlin ecosystem already has the wrapper.
TL;DR
- Use PlatformSpellCheckerKt by @Wavesonics.
- Wraps
NSSpellCheckeron macOS,ISpellCheckeron Windows (since Windows 8), andenchant/hunspellon Linux. - Suggestions, language detection, custom dictionaries.
Install
dependencies {
implementation("com.darkrockstudios:platform-spellchecker:<version>")
}Quickstart
val checker = PlatformSpellChecker()
val misspellings = checker.check("This is a sentance with errors")
// → [Misspelling(word = "sentance", suggestions = ["sentence", ...])]How it works
- macOS —
NSSpellChecker, the same engine TextEdit and the system text fields use. - Windows — Windows Spell Check API (
ISpellChecker), available since Windows 8. - Linux —
enchant/hunspell.
You get suggestions, language detection, and custom dictionary support — same behavior the user already sees in the rest of their OS.
Why Nucleus doesn't ship this
Spell checking is locale-heavy and benefits from a focused, well-tested library. PlatformSpellCheckerKt already wraps the right native engines with no JVM-specific limitations Nucleus would need to work around.