---
title: "ignoreWord(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitextchecker/ignoreword(_:)"
---

# ignoreWord(_:)

Tells the text checker to ignore the specified word when spell-checking.

## Declaration

```swift
func ignoreWord(_ wordToIgnore: String)
```

## Parameters

- `wordToIgnore`: A string that is a word the receiver should ignore when it is spell-checking a document.

## Discussion

Discussion The spell checker excludes ignored words as misspelled words during the current spell-checking session only.

## See Also

### Learning and Ignoring Words

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