The aspell is a command line tool that allows to check spelling errors for a given file or individual words provided from standard input. This tool displays misspellings and allows the user to choose potential corrections from a list.
This tutorial shows how to install aspell on Raspberry Pi.
Use SSH to connect to Raspberry Pi. Execute the following commands to update the package lists and install aspell:
sudo apt update
sudo apt install -y aspell
We can check version of aspell with command:
aspell --version
Create a file for testing:
echo "This content will be cheked for speling errors" > test.txt
Now run the aspell
command with -c
option and provide the filename.
aspell -c test.txt
The aspell highlights spelling mistakes and allows to choose correction from a list.
We can use -a
option to check individual words. If the user enters misspelled word, the aspell outputs spelling suggestions.
aspell -a
Note: press CTRL+D to quit aspell.
If the aspell is no longer necessary, you can remove it and related dependencies by using the following command:
sudo apt purge --autoremove -y aspell
Leave a Comment
Cancel reply