checkSentence
open suspend fun checkSentence(sentence: String, sentenceRange: TextEditorRange): List<Correction>(source)
Check a sentence for spelling errors that may span multiple words.
Unlike isCorrectWord, this method analyzes the sentence as a whole, potentially finding errors that word-by-word checking would miss (e.g., concatenated words like "inthe" -> "in the").
Return
List of corrections, each with a document-level range and suggestions. Returns empty list if the sentence has no errors or if sentence-level checking is not supported by this implementation.
Parameters
sentence
The complete sentence to check
sentenceRange
The document position of the sentence. Corrections will have ranges translated to document coordinates based on this.