---
title: "learnWord(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsspellchecker/learnword(_:)"
---

# learnWord(_:)

Adds the word to the spell checker dictionary.

## Declaration

```swift
func learnWord(_ word: String)
```

## Parameters

- `word`: The word to add.

## See Also

### Managing the Spell-Checking Process

- [uniqueSpellDocumentTag()](appkit/nsspellchecker/uniquespelldocumenttag().md)
- [closeSpellDocument(withTag:)](appkit/nsspellchecker/closespelldocument(withtag:).md)
- [ignoreWord(_:inSpellDocumentWithTag:)](appkit/nsspellchecker/ignoreword(_:inspelldocumentwithtag:).md)
- [ignoredWords(inSpellDocumentWithTag:)](appkit/nsspellchecker/ignoredwords(inspelldocumentwithtag:).md)
- [setIgnoredWords(_:inSpellDocumentWithTag:)](appkit/nsspellchecker/setignoredwords(_:inspelldocumentwithtag:).md)
- [setWordFieldStringValue(_:)](appkit/nsspellchecker/setwordfieldstringvalue(_:).md)
- [updateSpellingPanel(withMisspelledWord:)](appkit/nsspellchecker/updatespellingpanel(withmisspelledword:).md)
- [completions(forPartialWordRange:in:language:inSpellDocumentWithTag:)](appkit/nsspellchecker/completions(forpartialwordrange:in:language:inspelldocumentwithtag:).md)
- [hasLearnedWord(_:)](appkit/nsspellchecker/haslearnedword(_:).md)
- [unlearnWord(_:)](appkit/nsspellchecker/unlearnword(_:).md)
- [userQuotesArray(forLanguage:)](appkit/nsspellchecker/userquotesarray(forlanguage:).md)
- [userReplacementsDictionary](appkit/nsspellchecker/userreplacementsdictionary.md)
