<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSSpellServerDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSSpellServerDelegate"
  },
  "title" : "NSSpellServerDelegate"
}
-->

# NSSpellServerDelegate

The optional methods implemented by the delegate of a spell server.

```
protocol NSSpellServerDelegate : NSObjectProtocol
```

## Topics

### Check Grammar and Spelling in Strings

[`-  spellServer:checkString:offset:types:options:orthography:wordCount:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:check:offset:types:options:orthography:wordCount:))

Gives the delegate the opportunity to analyze both the spelling and grammar simultaneously, which is more efficient.

[`-  spellServer:suggestGuessesForWord:inLanguage:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:suggestGuessesForWord:inLanguage:))

Gives the delegate the opportunity to suggest guesses to the sender for the correct spelling of the given misspelled word in the specified language.

[`-  spellServer:checkGrammarInString:language:details:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:checkGrammarIn:language:details:))

Gives the delegate the opportunity to customize the grammatical analysis of a given string.

[`-  spellServer:findMisspelledWordInString:language:wordCount:countOnly:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:findMisspelledWordIn:language:wordCount:countOnly:))

Asks the delegate to search for a misspelled word in a given string, using the specified language, and marking the first misspelled word found by returning its range within the string.

### Managing the Spelling Dictionary

[`-  spellServer:didForgetWord:inLanguage:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:didForgetWord:inLanguage:))

Notifies the delegate that the sender has removed the specified word from the user’s list of acceptable words in the specified language.

[`-  spellServer:didLearnWord:inLanguage:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:didLearnWord:inLanguage:))

Notifies the delegate that the sender has added the specified word to the user’s list of acceptable words in the specified language.

[`-  spellServer:suggestCompletionsForPartialWordRange:inString:language:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:suggestCompletionsForPartialWordRange:in:language:))

This delegate method returns an array of possible word completions from the spell checker, based on a partially completed string and a given range.

[`-  spellServer:recordResponse:toCorrection:forWord:language:`](/documentation/Foundation/NSSpellServerDelegate/spellServer(_:recordResponse:toCorrection:forWord:language:))

Notifies the spell checker of the users’s response to a correction.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)