---
title: "spellServer(_:didLearnWord:inLanguage:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsspellserverdelegate/spellserver(_:didlearnword:inlanguage:)"
---

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

## Declaration

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

## Parameters

- `sender`: The NSSpellServer object that added the word.
- `word`: The word that was added.
- `language`: The language of the added word.

## Discussion

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

## See Also

### Managing the Spelling Dictionary

- [spellServer(_:didForgetWord:inLanguage:)](foundation/nsspellserverdelegate/spellserver(_:didforgetword:inlanguage:).md)
- [spellServer(_:suggestCompletionsForPartialWordRange:in:language:)](foundation/nsspellserverdelegate/spellserver(_:suggestcompletionsforpartialwordrange:in:language:).md)
- [spellServer(_:recordResponse:toCorrection:forWord:language:)](foundation/nsspellserverdelegate/spellserver(_:recordresponse:tocorrection:forword:language:).md)
