![]() This means that aspell has figured out some spelling mistakes in our passage. Once you run the above command, you'll be shown a screen similar to the following screenshot: aspell command to find spelling mistakes in a file aspell -c computer.txt Terminal command to check spelling on computer.txt file Let's ask aspell to find the spelling mistakes in this passage. Some of them are macine instead of machine, intrenet instead of internet, etc. I've made some spelling mistakes in the middle. ![]() I've created a file named computer.txt and added the below content: Content of computer.txt file aspell -c Terminal command to check spelling by reading a file This accepts an HTML or Markdown file too. You can write the passage in a text file and pass the file path as an argument to the -c flag in the aspell command. Grammarly and Google Docs will best assist you with a good internet connection. Using the terminal to check the spelling of words from a file is the best alternative approach if you don't have internet access. How to Check the Spelling of Words from a File The fact that it does not require the internet is an added advantage. This can be quite handy for developers since they can quickly switch to the terminal and find the correct spelling of a word during their development. Similarly, you can see the suggestions for other words too (waier, calendrr, moble, bqttle). The close alternatives for the word sampee are sample, simper, sampler. Here's an example screenshot: Correct word suggestions from aspell commandįrom the above screenshot, you can see that aspell suggests multiple words for each incorrectly-spelled word I entered. In this mode, you can enter the words with possible incorrect spelling one by one and you will get a list of words with the correct spelling that are the closest to the entered word. aspell -a Terminal command to check spelling interactively aspell -a command to open aspell in interactive mode Pass the -a flag with the aspell command to open it in interactive mode. Run the following command to install aspell in your machine: sudo apt install aspell Terminal command to install aspell How to Check the Spelling of Words One-by-one Interactively? If you encounter errors while running the above command, it means that you don't have it installed. aspell -help Terminal command to verify if aspell installed aspell -help command output Running -help with the command shows the list of all the available options. It can read and check the spelling on markdown files, too.Īspell has a lot of options. It checks spelling on UTF-8 encoded files. Out of these 2, ispell is the old spellchecker from GNU which has a limited capability to read different kinds of encoded files.Īspell is an interactive spell checker which checks the spelling via standard input or by reading through the file. Ispell and aspell are the 2 commands you can use to check the spelling of a word. The fact that it comes pre-installed with the terminal is an added advantage. But this utility command is a handy alternative tool for developers to check their spelling. ![]() I've seen people using Microsoft Word or Google to check the spelling of a word. The terminal has a lot of utility commands, but most people are unaware of many of them. Did you know you can use the terminal to check the spelling of a passage you've written?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |