---
title: "learnWord(_:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uitextchecker/learnword(_:)"
---

# learnWord(_:)

Tells the text checker to learn the specified word so that it doesn’t evaluate it as misspelled.

## Declaration

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

## Parameters

- `word`: A string representing the word for the class to learn.

## Discussion

Discussion When a UITextChecker object learns a word, it is added to the dictionary. It is global across languages.

## See Also

### Learning and Ignoring Words

- [ignoreWord(_:)](uikit/uitextchecker/ignoreword(_:).md)
- [ignoredWords](uikit/uitextchecker/ignoredwords.md)
- [unlearnWord(_:)](uikit/uitextchecker/unlearnword(_:).md)
- [hasLearnedWord(_:)](uikit/uitextchecker/haslearnedword(_:).md)
