stemwords command not found

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

Introduction

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

stemwords: command not found

or when using sudo you get the following error message

sudo: stemwords: command not found

Solutions to stemwords: command not found

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

In Ubuntu stemwords is provided by libstemmer-tools package.

libstemmer-tools is:

Snowball provides access to efficient algorithms for calculating a “stemmed” form of a word. This is a form with most of the common morphological endings removed; hopefully representing a common linguistic base form. This is most useful in building search engines and information retrieval software; for example, a search with stemming enabled should be able to find a document containing “cycling” given the query “cycles”.

Snowball provides algorithms for several (mainly European) languages. It also provides access to the classic Porter stemming algorithm for English: although this has been superseded by an improved algorithm, the original algorithm may be of interest to information retrieval researchers wishing to reproduce results of earlier experiments.

This package contains “stemwords”, a simple utility for stemming words.

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

sudo apt-get -y install libstemmer-tools

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

You can also use apt command to install libstemmer-tools.

sudo apt -y install libstemmer-tools

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

sudo aptitude install libstemmer-tools

Summary

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