问题描述
有没有人知道什么字典 UITextChecker 从?我用它来验证一个词实际上是一个应用程序中的一个有效的词。我有一些用户的问题,为什么其他游戏(Boggle / Scrabble)中没有可用的特定单词,但不在我的。示例:ai我检查过/ em / / usr / share / dict / qi,qi,qi,xu,ae,tae,ait,ain,lav,aa,shh,za
,这些单词都不在 Websters Second International 中,所以也许UITextChecker使用这个相同的来源?他们确实在线上显示在其他词典中(但这除了这个帖子之外)。
感谢任何见解!
UITextChecker可能使用与UIReferenceLibraryViewController使用的相同的字典。在这种情况下,您可以使用[UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:@term],如果它返回true,则表示存在。我不知道内置的字典是否完整。
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!
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.
这篇关于UITextChecker是什么字典?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!