spellServer(_:checkGrammarIn:language:details:)
Gives the delegate the opportunity to customize the grammatical analysis of a given string.
Declaration
optional func spellServer(_ sender: NSSpellServer, checkGrammarIn stringToCheck: String, language: String?, details: AutoreleasingUnsafeMutablePointer<NSArray?>?) -> NSRangeParameters
- sender:
Spell server satisfying a grammatical analysis request.
- stringToCheck:
String to analyze.
- language:
Language use in
string. Whennil, the language selected in the Spelling panel is used. - details:
On output, dictionaries describing grammar-analysis details within the flagged grammatical unit. See the Nsspellserver class for information about these dictionaries.
Return Value
Location of the first flagged grammatical unit within string.