[prev in list] [next in list] [prev in thread] [next in thread]
List: aspell-user
Subject: Re: [Aspell-user] Passing word to aspell via command line...
From: traverso () dp ! dm ! unipi ! it
Date: 2016-07-30 5:26:37
Message-ID: 20160730052637.82A6D11EAC8 () dodgson ! dm ! unipi ! it
[Download RAW message or body]
> > > > > "Russell" == Russell Jones <russ@moz.com> writes:
Russell> Ideally, I would like to interact with aspell directly
Russell> via the command line rather than through an external file
Russell> or interactive pipe mode so that I can easily capture the
Russell> output
Russell> something like...
Russell> aspell -w basball
Russell> Or do I really have to create a 1-line file with that
Russell> word in it and then run aspell -c file.txt to check that
Russell> one word?
You can use 'aspell -a' e.g.
echo basball | aspell -a
traverso@iro:~$ echo basball | aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.7-20110707)
& basball 11 0: baseball, baseballs, basally, basal, barbell, baseball's, Babel, \
Basel, Basil, babel, basil traverso@iro:~$ echo basball | aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.7-20110707)
*
traverso@iro:~$
Assuming of course that you want to handle the suggestions.
If you want just to check if a word is OK, you can use 'aspell list', e.g.
traverso@iro:~$ echo basball | aspell list
basball
traverso@iro:~$ echo baseball | aspell list
traverso@iro:~$
Carlo Traverso
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic