Instance Method

ignoreWord(_:)

Tells the receiver to ignore the specified word when spell-checking.

Declaration

func ignoreWord(_ wordToIgnore: String)

Parameters

wordToIgnore

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

Discussion

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

See Also

Learning and Ignoring Words

var ignoredWords: [String]?

Returns the words that the receiver ignores when spell-checking.

class func learnWord(String)

Tells the text checker to learn the specified word so that it is not evaluated as misspelled.

class func unlearnWord(String)

Tells the text checker to unlearn the specified word

class func hasLearnedWord(String) -> Bool

Returns whether the text checker has learned the specified word.