Spell checking user's input by aspell, but how to invoke the INTERACTIVE mode in this context?
2
votes
3
answers
1675
views
I have wrote a script which receives a user's sentence,
i'd like to pipe the string to **aspell** and then get the ***INTERACTIVE*** screen's suggestions (in case user had some typos). Afterwards the words would be sent back to the script and I'd replace the typos with the corresponding words.
I'm aware of aspell options:
1) Check the file for typos and display a list of suggestions **in interactive mode**:
aspell check
2) Check the file for typos and display a list of suggestions **not in interactive mode**:
cat | aspell -a
but if I try option one, I get **"Error: Stdin not a terminal."**,
I'll be glad to get any fruitful tip how to overcome this issue? :)
Thank you
Asked by JammingThebBits
(426 rep)
Aug 17, 2018, 07:56 PM
Last activity: Apr 23, 2020, 08:19 PM
Last activity: Apr 23, 2020, 08:19 PM