<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITextChecker/unlearnWord(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITextChecker(cm)unlearnWord:"
  },
  "title" : "unlearnWord(_:)"
}
-->

# unlearnWord(_:)

Tells the text checker to unlearn the specified word.

```
class func unlearnWord(_ word: String)
```

## Parameters

`word`

A string representing the word for the class to unlearn.

## Discussion

When a `UITextChecker` object unlearns a word, it is removed from the dictionary.

---

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)