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

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

```
optional func spellServer(_ sender: NSSpellServer, didForgetWord word: String, inLanguage language: String)
```

## Parameters

`sender`

The `NSSpellServer` object that removed the word.

`word`

The word that was removed.

`language`

The language of the removed word.

## Discussion

If your delegate maintains a similar auxiliary word list, you may wish to edit the list accordingly.

---

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)