How to disable default English dictionary in Pspell and use only Custom dictionary?

北城以北 提交于 2019-12-24 16:41:05

问题


I am using php and Pspell to create a custom "did you mean" feature and i need to generate suggestions strictly from the word list with me. Is there a way to turn off suggestions from default English dictionary i am using as a base. I just need pspell to look in the custom dictionary, that's it.


回答1:


Based on this page:

$dictionary_link = pspell_new_personal("/var/dictionaries/custom_spellings","/var/dictionaries/custom_spellings");


来源:https://stackoverflow.com/questions/16714362/how-to-disable-default-english-dictionary-in-pspell-and-use-only-custom-dictiona

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