getSuggestions

fun getSuggestions(word: String, maxSuggestions: Int = 10): List<String>(source)

Gets spelling suggestions for a misspelled word.

Return

List of spelling suggestions

Parameters

word

The word to get suggestions for

maxSuggestions

Maximum number of suggestions to return (default 10)