GitHub - Wavesonics/SymSpellKt: A Kotlin Multiplatform implementation of the SymSpell algorithm. (original) (raw)

SymSpell Spell Check Kotlin

Build Status Maven Central License

Kotlin

KMP badge-jvm badge-android badge-wasm badge-wasmi badge-jsir badge-linux badge-windows badge-mac-x86 badge-mac-arm badge-ios badge-ios-sim

This is a Kotlin Multiplatform implementation of the symspell fuzzy search algorithm. It has been ported from this Java implementation of symspell.

Dependency

implementation("com.darkrockstudios:symspellkt:3.4.0")

Sample

Try out the sample desktop application:

gradlew sampleCompose:run

Try sample here Sample Compose Screenshot

SymSpell v6.6 (Bigrams)

Fdic: Binary Frequency Dictionary file format

In order to optimize for size on disk, and speed of loading and parsing, I made a little file format to encode the common plain text frequency dictionaries use with SymSpell style spell checkers.

fdic is both smaller on disk, and faster to load than either plain text or gzipped dictionaries. In some cases being:

There is a CLI program for producing .fdic files from a standard plain text frequency dictionary, as well as some extension functions in an addon library for loading them into a SymSpellKt SpellChecker object.