Spellchecking numbers.

Dmitri Tikhonov <[email protected]>
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <[email protected]>
Dear List,

I have run into an interesting issue -- it looks like all numbers
containing more than one digit are marked as misspelled when using
aspell APIs (see attached C source).  However, 'aspell' the program does
not have this problem.  I tried looking at the code, but it's C++ and
might as well have been Greek to me :)  Could someone please explain the
discrepancy?

Thanks!

  - Dmitri.

Setup:

[dtikhonov@localhost ~]$ aspell --version
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.3)
[dtikhonov@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.16-1.2122_FC5 #1 Sun May 21 15:01:01 EDT
2006 i686 i686 i386 GNU/Linux

_______________________________________________
Aspell-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/aspell-user
spell.c.txt (text/plain, 703 B)
#include <stdlib.h>
#include <stdio.h>
#include <aspell.h>

int
main (int argc, char **argv)
{
    AspellConfig * spell_config;
    AspellCanHaveError * possible_err;
    int i;

    spell_config = new_aspell_config();
    aspell_config_replace(spell_config, "lang", "en_US");
    possible_err = new_aspell_speller(spell_config);
    AspellSpeller * spell_checker = 0;
    if (aspell_error_number(possible_err) != 0)
        puts(aspell_error_message(possible_err));
    else
        spell_checker = to_aspell_speller(possible_err);


    for (i = 1; i < argc; ++i) {
        printf("word: %s; check: %d\n", argv[i],
            aspell_speller_check(spell_checker, argv[i], -1));
    }

    return 0;
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.