hunspell command not found

In this troubleshooting guide we learn how to fix hunspell command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

hunspell: command not found

or when using sudo you get the following error message

sudo: hunspell: command not found

Solutions to hunspell: command not found

How To Fix hunspell: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu hunspell is provided by hunspell package.

hunspell is:

Hunspell is a spell checker and morphological analyzer library and program designed for languages with rich morphology and complex word compounding or character encoding. It is based on MySpell and features an Ispell-like terminal interface using Curses library, an Ispell pipe interface and an OpenOffice.org UNO module.

Main features:

  • Unicode support (first 65535 Unicode characters)
  • morphological analysis (in custom item and arrangement style)
  • Max. 65535 affix classes and twofold affix stripping (for agglutinative languages, like Azeri, Basque, Estonian, Finnish, Hungarian, Turkish, etc.)
  • Support complex compoundings (for example, Hungarian and German)
  • Support language specific algorithms (for example, handling Azeri and Turkish dotted i, or German sharp s)
  • Handling conditional affixes, circumfixes, fogemorphemes, forbidden words, pseudoroots and homonyms.

This package contains the program with the Ispell-like terminal and pipe interfaces.

To fix this problem, we can install more using the command below.

sudo apt-get -y install hunspell

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install hunspell.

sudo apt -y install hunspell

Or if you have aptitude installed you can use the following command.

sudo aptitude install hunspell

Summary

In this tutorial we learn how to fix hunspell command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.