Getting spelling suggestions from aspell in pipe mode?

Colin McMillen <[email protected]>
Newsgroups gmane.comp.gnu.aspell.user
Message-ID <[email protected]>
Hi,

I would like to use aspell in pipe mode to get spelling suggestions
for *all* words (including words which are correctly spelled.)
Basically, I want the results of aspell_speller_suggest(...) for every
word in the input file, but aspell only prints "*" if a word is
spelled correctly; it doesn't print out the other possibilities.

Is it possible to get spelling suggestions for correct words in pipe mode?

For example, given the input file:

test
yrk
tmes
done

"aspell -a --suggest < infile" prints:

*
& yrk 9 0: York, york, yr, Ark, ark, irk, yak, yrs, yuk
& tmes 19 0: tames, times, tomes, mes, Tm's, Mmes, Tues, tees, ties,
toes, Tome's, time's, tome's, Me's, Mme's, tee's, toe's, Ame's, Tye's
*

I would prefer output more like:

& test ...: test testy teat tests rest yest Tet EST est Tess text Best
TESL West Zest best fest jest lest nest pest tent vest west zest
& yrk 9 0: York, york, yr, Ark, ark, irk, yak, yrs, yuk
& tmes 19 0: tames, times, tomes, mes, Tm's, Mmes, Tues, tees, ties,
toes, Tome's, time's, tome's, Me's, Mme's, tee's, toe's, Ame's, Tye's
& done ...: done Dione Donne dine Don don drone dome DOE Doe doe one
Dane Dene Dona Donn dona dune dyne tone Dons dong dons Bone Dode Dole
Dore Jone bone cone doge dole dope dose dote dove doze gone hone lone
none pone zone Don's don't

Thanks for any help you may be able to give!

Colin

-- 
Colin McMillen - http://colinm.org - [email protected]
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.