SymSpellEditorSpellChecker
An EditorSpellChecker backed by the SymSpell library.
Uses SymSpell's dictionary lookup for word checking and suggestions, and its word-break segmentation to detect sentence-level issues such as concatenated words, mapping results into the editor's Suggestion and Correction types.
Parameters
impl
The SymSpell SpellChecker to delegate to.
Functions
Link copied to clipboard
open suspend override fun checkSentence(sentence: String, sentenceRange: TextEditorRange): List<Correction>
Implements EditorSpellChecker.checkSentence using SymSpell word-break segmentation.
Link copied to clipboard
Implements EditorSpellChecker.isCorrectWord using SymSpell.
Link copied to clipboard
open suspend override fun suggestions(input: String, scope: EditorSpellChecker.Scope = Scope.Word, closestOnly: Boolean = true): List<Suggestion>
Implements EditorSpellChecker.suggestions using SymSpell.