http://qs321.pair.com?node_id=145052


in reply to Ispell did it in my code with a broken pipe, anyone got a clue?

I tried ispell on the command line, and did get an error for 'nis2002':
% ispell -a @(#) International Ispell Version 3.1.20 10/10/95 @nis2002 Word 'nis2002' contains illegal characters
Since this isn't the behavior you're getting, perhaps you have two versions of ispell installed. It could be that the one you get from the command line allows 'nis2002', but the one that Text::Ispell is wrapped around doesn't.

One quick solution is to remove the numbers, and add just 'nis':

% ispell -a @(#) International Ispell Version 3.1.20 10/10/95 nis2002 & nis 18 0: Dis, his, ins, is, n's, NBS, NFS, nib, nibs, NIH, nil, nip +, nips, nit, nix, NTIS, sis, vis @nis nis2002 *
BTW, I noticed on CPAN that Text::Ispell has been replaced by Lingua::Ispell. I don't know if the new module will fix your problem, but it shouldn't hurt.

Replies are listed 'Best First'.
Re: Re: Ispell did it in my code with a broken pipe, anyone got a clue?
by jonjacobmoon (Pilgrim) on Feb 13, 2002 at 03:38 UTC
    Well, when I do a whereis I only get one version, but mine is linked to aspell and acccording to the documentation on ispell home page, nis2002 is valid.

    However, your output without the aspell connection might have revealed the clue. Text::Ispell apparently gets confused by the connection with aspell. I used Lingua::Ispell per your suggetion, and it worked. IT WORKED! Man, I feel stupid when the answer is that simple.

    Chipmunk gets major ++ in my book!


    I admit it, I am Paco.