Why does aspell suggest the very word that it fails to check?

久未见 提交于 2019-12-11 18:23:44

问题


Here is the command I run:

> echo "civilization" | aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
& civilization 3 0: civilization, civilizations, civilization's

Why does aspell suggest the very word ("civilization") but fails to check its spelling? In contrast, hunspell seems to get this right

> echo "civilization" | hunspell
Hunspell 1.3.2
*

but that is probably because the two spell checkers use different dictionaries.

EDIT: Running this on a different machine and different/older aspell version seems to work though:

> echo civilization | aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.3)
*

回答1:


Uppercase and lowercase
What you get, if you try it with Civilization ?

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

T:\msys\1.0\src\aspell-0.60.6\.libs>echo "zivilisation" | aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
& zivilisation 3 1: Zivilisation, Zivilisationen, Sterilisation

T:\msys\1.0\src\aspell-0.60.6\.libs>echo "Zivilisation" | aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6)
*

T:\msys\1.0\src\aspell-0.60.6\.libs>



回答2:


According to Kevin Atkinson (aspell maintainer, link) that's a bug and he wasn't sure if there's a report open for it. He wasn't sure if/when this will get fixed either.



来源:https://stackoverflow.com/questions/15867280/why-does-aspell-suggest-the-very-word-that-it-fails-to-check

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