$spellcheck » History » Version 2
Per Amundsen, 02/23/2023 07:44 PM
| 1 | 1 | Per Amundsen | _Added in 2.9_ |
|---|---|---|---|
| 2 | |||
| 3 | *$spellcheck(word, [N])* |
||
| 4 | |||
| 5 | Returns the Nth spellchecking suggestion for the specified word. |
||
| 6 | |||
| 7 | *Parameters* |
||
| 8 | |||
| 9 | 2 | Per Amundsen | table(ktable). |
| 10 | |*Parameter*|*Description*| |
||
| 11 | | word | The word to spellcheck | |
||
| 12 | | [N] | if N = 0, number of suggestions, otherwise the Nth suggestion. | |
||
| 13 | 1 | Per Amundsen | |
| 14 | *Example* |
||
| 15 | |||
| 16 | <pre> |
||
| 17 | ; Prints the first suggestion for the misspelled word 'wrod'. |
||
| 18 | //echo -ag $spellcheck(wrod, 1) |
||
| 19 | </pre> |