Nucleus
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 NSSpellChecker on macOS, ISpellChecker on Windows (since Windows 8), and enchant/hunspell on 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

  • macOSNSSpellChecker, the same engine TextEdit and the system text fields use.
  • Windows — Windows Spell Check API (ISpellChecker), available since Windows 8.
  • Linuxenchant / 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.