Returns an array of possible substitutions for the specified string.
SDK
- macOS 10.6+
Framework
- App
Kit
Declaration
Parameters
range
The range of the string to check.
string
The string to guess.
language
The language of the string.
tag
An identifier unique within the application used to inform the spell checker which document that text is associated, potentially for many purposes, not necessarily just for ignored words. A value of 0 can be passed in for text not associated with a particular document.
Return Value
An array of strings containing possible replacement words.