Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextChecker is what dictionary?

Does anybody know what dictionary UITextChecker pulls from? I use it to verify that a word is in fact a valid word in an app. I have some questions from users about why specific words are available in other games (Boggle/Scrabble) but not in mine.

Examples: ai, qi, qat, xu, ae, tae, ait, ain, lav, aa, shh, za

I checked against /usr/share/dict/words and none of these words are in Websters Second International, so maybe UITextChecker uses this same source? They do show up in other dictionaries online (but this is really besides the point of the post).

Thanks for any insight!

like image 389
Jason Pawlak Avatar asked Feb 15 '26 23:02

Jason Pawlak


1 Answers

UITextChecker may be using the same dictionary that UIReferenceLibraryViewController uses. In which case, you could use something like [UIReferenceLibraryViewController dictionaryHasDefinitionForTerm: @"term"] and if it returns true the word exists. I'm not sure how complete the built in dictionary is however.

like image 89
Casey Fleser Avatar answered Feb 18 '26 16:02

Casey Fleser



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!