hasLearnedWord
TypeScriptstatic hasLearnedWord(word: string): Promise<boolean>Swift declarationclass func hasLearnedWord(_ word: String) -> Boolclass · iOS 3.2+ · SDK 27.1
@MainActor class UITextCheckerstatic hasLearnedWord(word: string): Promise<boolean>Swift declarationclass func hasLearnedWord(_ word: String) -> Boolstatic learnWord(word: string): Promise<void>Swift declarationclass func learnWord(_ word: String)static unlearnWord(word: string): Promise<void>Swift declarationclass func unlearnWord(_ word: String)static get availableLanguages(): Promise<Array<string>>Swift declarationclass var availableLanguages: [String] { get }completions(range: SDKHandle, string: string, language: string): Promise<(Array<string>) | null>Swift declarationfunc completions(forPartialWordRange range: NSRange, in string: String, language: String) -> [String]?guesses(range: SDKHandle, string: string, language: string): Promise<(Array<string>) | null>Swift declarationfunc guesses(forWordRange range: NSRange, in string: String, language: String) -> [String]?ignoreGrammarRange(grammarRange: SDKHandle, sentence: string): Promise<void>Swift declarationfunc ignoreGrammarRange(_ grammarRange: NSRange, inSentence sentence: String)ignoreWord(wordToIgnore: string): Promise<void>Swift declarationfunc ignoreWord(_ wordToIgnore: String)static init(): Promise<UITextChecker>Swift declarationinit()rangeOfMisspelledWord(stringToCheck: string, range: SDKHandle, startingOffset: number, wrapFlag: boolean, language: string): Promise<SDKHandle>Swift declarationfunc rangeOfMisspelledWord(in stringToCheck: String, range: NSRange, startingAt startingOffset: Int, wrap wrapFlag: Bool, language: String) -> NSRangerequestGrammarChecking(stringToCheck: string, range: SDKHandle, waitForAllResults: boolean, completionHandler?: (((arg0: Array<_Foundation_NSTextCheckingResult>) => void)) | null): Promise<void>Swift declarationfunc requestGrammarChecking(of stringToCheck: String, range: NSRange, waitForAllResults: Bool) async -> [NSTextCheckingResult]get ignoredWords(): Promise<(Array<string>) | null>Swift declarationvar ignoredWords: [String]? { get set }setIgnoredWords(value?: (Array<string>) | null): Promise<void>Swift declarationvar ignoredWords: [String]? { get set }No declarations were skipped in this snapshot.