Contents

spellServer(_:suggestGuessesForWord:inLanguage:)

Gives the delegate the opportunity to suggest guesses to the sender for the correct spelling of the given misspelled word in the specified language.

Declaration

optional func spellServer(_ sender: NSSpellServer, suggestGuessesForWord word: String, inLanguage language: String) -> [String]?

Parameters

  • sender:

    The NSSpellServer object that sent this message.

  • word:

    The misspelled word.

  • language:

    The language to use for the guesses.

Return Value

An array of NSString objects indicating possible correct spellings.

See Also

Check Grammar and Spelling in Strings