How can I access Chrome's spell-check dictionary?

冷暖自知 提交于 2019-12-08 17:37:45

问题


Clearly Chrome has a built-in dictionary that it uses for spell-checking. Is there an API or some way to access this dictionary? I am interested not in checking spelling, but actually accessing the dictionary. E.g. I would like to write Dictionary autocomplete extension for chrome? a dictionary autocomplete extension that uses Chrome's dictionary instead of maintaining my own. Of particular interest to me would be a funciton like getWordsThatStartWith(text).


回答1:


The dictionaries are available for download from http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/hunspell_dictionaries/. (Files with .dic extension.)




回答2:


I am not sure if this is related to your request. It appears another developer created an extension to look up words, not sure if the api he founded used the internal dictionary spell-check or not...my assumption would be that the api merely return results from a google query using an advance search feature like "define: example", example being the query/word. Here's a link to the article though it's quite outdated.

http://googlesystem.blogspot.com/2009/12/on-googles-unofficial-dictionary-api.html



来源:https://stackoverflow.com/questions/12040169/how-can-i-access-chromes-spell-check-dictionary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!