{"id":125656,"date":"2020-12-03T17:00:21","date_gmt":"2020-12-03T14:00:21","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line-cloudsavvy-it\/"},"modified":"2020-12-03T17:00:21","modified_gmt":"2020-12-03T14:00:21","slug":"how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line-cloudsavvy-it\/","title":{"rendered":"#How to Use Aspell to Spell Check Your Text Files at the Linux Command Line \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a40979d02f82\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a40979d02f82\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line-cloudsavvy-it\/#What_Is_Aspell\" >What Is Aspell?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line-cloudsavvy-it\/#Installing_Aspell\" >Installing Aspell<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line-cloudsavvy-it\/#Lets_spell_check\" >Let\u2019s spell check!<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line-cloudsavvy-it\/#Output_and_Performance\" >Output and Performance<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Use Aspell to Spell Check Your Text Files at the Linux Command Line \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<figure id=\"attachment_8332\" style=\"width: 700px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-8332 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/7b78ebf044203e3f6ed89d41c7a25686\/p\/uploads\/2020\/11\/9b4ea7bd.png\" alt=\"\" width=\"700\" height=\"300\" data-crediturl=\"https:\/\/www.shutterstock.com\/image-photo\/wooden-blocks-text-spell-337668230\" data-credittext=\"Shutterstock\/Gustavo Frazao\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"imagecredit\"><a rel=\"nofollow noopener noreferrer\" target=\"_blank\" href=\"https:\/\/www.shutterstock.com\/image-photo\/wooden-blocks-text-spell-337668230\">Shutterstock\/Gustavo Frazao<\/a><\/span><\/figcaption><\/figure>\n<p>Ever wanted to spell check text files directly from the Linux command line? This article will get your setup and started with Aspell, the interactive spell checker. Start spell checking your text files, for free, today!<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"What_Is_Aspell\"><\/span>What Is <i>Aspell<\/i>?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>GNU Aspell is an open source and free spell checker which can be installed easily on your Linux system. You can use it at the command line, and with a few option tweaks one can check text files reliably and quickly. This article was spell checked with Aspell at the command line, as well as <em>spellintian<\/em> which is another utility you may like to explore.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Installing_Aspell\"><\/span>Installing <i>Aspell<\/i><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install <i>Aspell<\/i> on your Debian\/Apt based Linux distribution (Like Ubuntu and Mint), execute the following command in your terminal:<\/p>\n<p><code>sudo apt install aspell<\/code><\/p>\n<p>If the above command does not automatically install <i>aspell-en<\/i> on your system as well, please add it to the command line.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8262\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/4946b3be075fb5975d5c1ce12095051b\/p\/uploads\/2020\/11\/69a092cb.png\" alt=\"Installing aspell\" width=\"796\" height=\"870\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To install <i>Aspell<\/i> on your RedHat\/Yum based Linux distribution (Like RHEL, Centos and Fedora), execute the following command in your terminal:<\/p>\n<p><code>sudo yum install aspell<\/code><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Lets_spell_check\"><\/span>Let\u2019s spell check!<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let\u2019s create a file with a variety of spelling errors:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8263\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/1bc73c49b02789562988d952c5cf6469\/p\/uploads\/2020\/11\/45f16d47.png\" alt=\"File full of spelling mistakes\" width=\"378\" height=\"76\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>We can now check this file with Aspell:<\/p>\n<pre>aspell --master=en_US --lang=en_US -c test_spelling.txt&#13;\n<\/pre>\n<p>The <code>-c<\/code> option will spell check a single file, and the <code>--master<\/code> and <code>--lang<\/code> settings point Aspell to using a single specified directory, or terminate in case this is not possible. Here we use the <i>en_US<\/i> dictionary to use the US English language.<\/p>\n<p>Another option which I personally use regularly, and it is so new it has not been added to the manual yet, is <code>--mode=markdown<\/code>, which makes Aspell aware of the fact that one is using markdown based text. This may help with avoiding false positives.<\/p>\n<p>For additional options, language settings, and different modes, you can reference the Aspell manual by using <code>man aspell<\/code> at the command line. For English language abbreviations like <i>en_US<\/i> and <i>en_GB<\/i>, see the installation screenshot above as it highlights the ones installed.<\/p>\n<p>You may also need to install additional packages if you are interested in other languages. For example, <code>aspell-de<\/code> can be installed for German support, etc.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Output_and_Performance\"><\/span>Output and Performance<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>I have been using Aspell for quite some time, and have found it to be a highly reliable, fast, low-key, and easy-to-use spell checker. The personal dictionary feature (saved in the <code>.aspell.en.pws<\/code> file in your home directory, i.e. <code>~\/.aspell.en.pws<\/code>) works exceedingly well.<\/p>\n<p>Let\u2019s check our file with spelling errors.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8264\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/c0d6b5f63623fd13253ac2cba46defa1\/p\/uploads\/2020\/11\/b78af428.png\" alt=\"Aspell proposed correction #1\" width=\"673\" height=\"271\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>I simply press <i>1<\/i> to substitute \u2018Thiz\u2019 to the proposed \u2018This\u2019.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8265\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/2007e1d6cb638aaef061a1d237a9b7c4\/p\/uploads\/2020\/11\/d90a6452.png\" alt=\"Aspell proposed correction #2\" width=\"672\" height=\"273\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Slightly trickier, but option <i>3<\/i> is the way to go. A simple <i>3<\/i> keypress and we\u2019re onto the next error found.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8266\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/8dedfdfa0c8d20acedbf336dc1e0ccc8\/p\/uploads\/2020\/11\/8bc8a069.png\" alt=\"Aspell proposed correction #3\" width=\"673\" height=\"270\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Pressing <i>4<\/i> and moving on\u2026<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8267\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/091a7c5a0fd48645632f0d8b9a0f901c\/p\/uploads\/2020\/11\/ac00a86f.png\" alt=\"Aspell proposed correction #4\" width=\"672\" height=\"271\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The first option looks right. A simple <i>1<\/i> keypress.<\/p>\n<p>All other words were all <i>1<\/i> keypresses also. And, thanks to Aspell, our file now contains a lie:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-8268\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/e2f333dc296288a93d9c84cd65e5b72d\/p\/uploads\/2020\/11\/64267db5.png\" alt=\"Final output file fully corrected by aspell\" width=\"360\" height=\"52\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>As all spelling mistakes are fixed!<\/p>\n<p>By pressing a single key per mistake, we were able to fix all errors in this file. We could have also added a word if the dictionary was not aware of it (h<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>ens somewhat infrequently) by pressing <code>a<\/code>, and we can press the <code>r<\/code> key to type a new word ourselves to replace whatever mistake was found. If Aspell cannot find the new word we just typed, it will re-highlight it and we can correct it, add it, or replace it again.<\/p>\n<p>As you can see, spell checking text based files at the Linux command line is easy and straightforward with the Aspell tool. <strong>Enjoy!<\/strong>\n<\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener noreferrer\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/8261\/how-to-use-aspell-to-spell-check-your-text-files-at-the-linux-command-line\/\" target=\"_blank\" rel=\"noopener noreferrer\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Use Aspell to Spell Check Your Text Files at the Linux Command Line \u2013 CloudSavvy IT&#8221; Shutterstock\/Gustavo Frazao Ever wanted to spell check text files directly from the Linux command line? This article will get your setup and started with Aspell, the interactive spell checker. Start spell checking your text files, for free,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":125657,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/11\/9b4ea7bd.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-125656","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/125656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=125656"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/125656\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/125657"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=125656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=125656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=125656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}