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

# 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.

```
optional func spellServer(_ sender: NSSpellServer, suggestGuessesForWord word: String, inLanguage language: String) -> [String]?
```

## Parameters

`sender`

The `NSSpellServer` object that sent this message.

`word`

The misspelled word.

`language`

The language to use for the guesses.

## Return Value

An array of `NSString` objects indicating possible correct spellings.

## Discussion

---

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)