Initiates a grammatical analysis of a given string.
- macOS 10.5+
String to analyze.
stringat which to start the analysis.
Language use in
nil, the language selected in the Spelling panel is used.
trueto specify that the analysis continue to the beginning of string when the end is reached.
falseto have the analysis stop at the end of string.
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.
On output, dictionaries describing grammar-analysis details within the flagged grammatical unit. See the
NSSpellclass for information about these dictionaries.
Location of the first flagged grammatical unit.