Added in 2.9

$spellcheck(word, [N])

Returns the Nth spellchecking suggestion for the specified word.

Parameters

Parameter Description
word The word to spellcheck
[N] if N = 0, number of suggestions, otherwise the Nth suggestion.

Example

; Prints the first suggestion for the misspelled word 'wrod'.
//echo -ag $spellcheck(wrod, 1)