爵士拼写检查将正确拼写的单词显示为拼写错误

jazzy spell check showing correctly spelled words as misspelled

我已经在我的项目中实现了 jazzy 拼写检查器,它正在运行,但我遇到了许多误报;拼写正确的单词显示为拼写错误。

我按如下方式构建字典对象:

public SpellDictionaryHashMap getTempDictMap(){
        //String sDictionaryPath =     "C:/jason/code/libraries/jazzy/dictionary/eng_com.dic";
        String sDictionaryPath =     "C:/jason/code/libraries/jazzy/dictionary/English (USA).dic";
        String sPhoneticPath = "C:/jason/code/libraries/jazzy/dictionary/phonet.en";

    SpellDictionaryHashMap dictionary = null;
    try {
        dictionary = new SpellDictionaryHashMap(new File(sDictionaryPath), new File(sPhoneticPath));
    } catch (FileNotFoundException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

    return dictionary;
}

我四处寻找不同的词典,我发现爵士乐喜欢每行一个单词的格式。我已经尝试了 jazzy 下载附带的 eng_com.dic,并四处寻找其他人。

字典中似乎也有一些拼写错误的单词...不确定是什么问题。

一些不应列为拼写错误的单词示例如下:

INFO  SpellCheckProcess - word : determination
INFO  SpellCheckProcess - word : graduate
INFO  SpellCheckProcess - word : based
INFO  SpellCheckProcess - word : completed

难道只是找一本好词典的问题吗?或者在最初创建对象后获得几个然后添加单词?

我还有一堆字典,其中单词 运行- 放在一起。我认为那些是aspell词典? (不久前下载了这些东西)那些不能与爵士乐一起使用?

有人运行遇到过这个问题并且有好的处理方法吗?

谢谢, bp

来自文章 http://coldfusion.sys-con.com/node/42120 ,

A dictionary file is a one word per line, case-sensitive alphabetical listing of correctly spelled words that you want the spell checker to validate against. In case-sensitive alphabetical order, all words beginning with a capital letter come before those beginning with a lowercase (Zimbabwe would come before aardvark).

查看 eng_com.dic 文件,它没有按顺序...它按单词长度的递增顺序排在第一位。另请注意,根据文件 english.txt,您需要合并多个文件才能获得完整的词典(尽管您列出的单词都在 eng_com.dic 中)。

拼写检查器没有问题。根据上面的评论,字符如:

graduates”

使拼写检查程序出错