---
title: "ignoreWord(_:inSpellDocumentWithTag:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsspellchecker/ignoreword(_:inspelldocumentwithtag:)"
---

# ignoreWord(_:inSpellDocumentWithTag:)

Instructs the spell checker to ignore all future occurrences of wordToIgnore in the document identified by tag.

## Declaration

```swift
func ignoreWord(_ wordToIgnore: String, inSpellDocumentWithTag tag: Int)
```

## Discussion

Discussion You should invoke this method from within your implementation of the NSIgnoreMisspelledWords protocol’s ignoreSpelling(_:) method.

## See Also

### Managing the Spell-Checking Process

- [uniqueSpellDocumentTag()](appkit/nsspellchecker/uniquespelldocumenttag().md)
- [closeSpellDocument(withTag:)](appkit/nsspellchecker/closespelldocument(withtag:).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)
- [learnWord(_:)](appkit/nsspellchecker/learnword(_:).md)
- [userQuotesArray(forLanguage:)](appkit/nsspellchecker/userquotesarray(forlanguage:).md)
- [userReplacementsDictionary](appkit/nsspellchecker/userreplacementsdictionary.md)
