Herkum has asked for the wisdom of the Perl Monks concerning the following question:

I am using Activestate Perl 5.8.8 on a WinXP box. There is a ppm for Test::Spelling, which depends upon a spell utility for checking spelling. Of course there is no spell utility that comes with Windows and I have not found anything on Google.

Can anyone make some recommendations on a spell utility or a substitute so I can get Test::Spelling working?

Updated Updated references to the modules, made them links instead of bold

Replies are listed 'Best First'.
Re: Test::Spelling on Windows
by marto (Cardinal) on May 09, 2006 at 13:11 UTC
    Hi Herkum,

    You may want to look at the windows port of aspell.
    From the documentation:

    "set_spell_cmd($command)

    If the spell program has a different name or is not in your path, you can specify an alternative with set_spell_cmd. Any command that takes text from standard input and prints a list of misspelled words, one per line, to standard output will do. For example, you can use aspell -l."

    You may want to take note that (apparently) for some versions of aspell it’s 'aspell list' and not 'aspell -l'

    Hope this helps.

    Martin

      I have looking at and have installed 'aspell'. Everything you have said is right as far as I can tell. I even went back to my Linux box and lo-behold, the spell utility is just a link to 'aspell -l --mode=none'(where Test::Spelling works just fine).

      However, I tried to use 'aspell -l' on Windows and it is just sits there. Evidently there seems to be some sort of incompability between the *NIX implementation and the Windows implementation how it handles getting input from STDIN.

      Update: I found out that version 0.10 has this bug. This also happened to be the version that I had installed by ppm. I went installed a more current version off of cpan and it was fixed!

      Thanks for pointing me in the right direction!

Re: Test::Spelling on Windows
by blazar (Canon) on May 09, 2006 at 13:11 UTC

    First, a hint: use [mod://Test::Spelling], which renders as Test::Spelling.

    Said this, you may try checking here or in the referenced links.

      I did not know there was a special tag for module links, so thanks... :)

      I updated my post to include the mod links

Re: Test::Spelling on Windows
by Muruga (Sexton) on May 09, 2006 at 13:32 UTC

    Hi Herkum,

    This is also one of the module it will be very useful to spell check Pod::Spell -- a formatter for spellchecking Pod Pod::Spell