Questions tagged [uitextchecker]

Used to check a string (usually the text of a document) for misspelled words.

UITextChecker spell-checks using a lexicon for a given language. Available since 3.2

Reference

21 questions
0
votes
0 answers

UITextChecker tells me that completely ridiculous things have no spelling mistakes

I am trying to check if something is a valid word by spellchecking it with UITextChecker. Here's my method for checking: func isReal(word: String) -> Bool { let checker = UITextChecker() let range = NSMakeRange(0, word.utf16.count) let…
0
votes
3 answers

Disallow words less than 3 characters

In the Swift code below, the user chooses a word and types it into a text box, now how to disallow the words entered if less than 3 characters in length? func isReal (word: String) -> Bool { //return true let checker = UITextChecker() …
Amir Fendi
  • 11
  • 2
0
votes
1 answer

UITextChecker for ru_RU in Swift

I am trying to implement autocomplete for Russian words in Swift 2.0 and I faced with the following problem. I've implemented the following code to test how UITextChecker() works: let textChecker = UITextChecker() let getAvailableLanguages =…
Danny
  • 3,975
  • 4
  • 22
  • 35
0
votes
2 answers

Identify word is plural or singular in iOS

I am checking words typed by users. I want to get unique words. For checking if the word is valid or not I am using following code: UITextChecker *checker = [[UITextChecker alloc] init]; NSLocale *currentLocale = [NSLocale currentLocale]; NSString…
Kapil Choubisa
  • 5,152
  • 9
  • 65
  • 100
-1
votes
2 answers

How to use UITextChecker to find misspelled word

I want to use UITextChecker to find the wrong word. Unfortunately, my code does not work as I expected. Can anyone correct my mistake, please? Here is my code. https://i.stack.imgur.com/4Ib8e.png Thanks for helping me.
Dscyre Scotti
  • 1,307
  • 10
  • 17
-2
votes
1 answer

UITextChecker in Swift 4

I get an error while using UITextChecker in Swift 4. The following code most likely works for Swift 3, I'm just not sure what's the problem in Swift 4? Here is my code: import UIKit var correctStr : String = String() let str = "Helo" let textChecker…
Mohammad
  • 1,078
  • 2
  • 18
  • 39
1
2