词是否在词典中? [英] Word Is In Dictionary or Not
本文介绍了词是否在词典中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试查看字典中是否有字词。有什么办法吗?
I am trying to see if a word is in the dictionary or not. Is there any way to do that?
推荐答案
获取(假设)英文单词的列表,并将其放在数据库中(可能是Sqlite的可移植性)。你可以在这里找到单词列表:
Get a list of (assumingly) English words and put it in a database (probably Sqlite for portability). You can get lists of words here:
http:// wordlist .sourceforge.net /
或者在这里(在找到我可以得到一个英文字典单词列表吗?):
http://www.curlewcommunications.co.uk/wordlist.html
使用与您选择的数据库相对应的库查询一个字的表。这是一个用纯Java编写的Sqlite引擎:
Use a library corresponding to the database of your choice to query the table for a word. Here's a Sqlite engine written in pure Java:
这篇关于词是否在词典中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文