How To Install libvoikko on CentOS 7

In this tutorial we learn how to install libvoikko on CentOS 7. libvoikko is Voikko is a library for spellcheckers and hyphenators

Introduction

In this tutorial we learn how to install libvoikko on CentOS 7.

What is libvoikko

This is libvoikko, library for spellcheckers and hyphenators using Malaga natural language grammar development tool. The library is written in C. Currently only Finnish is supported, but the API of the library has been designed to allow adding support for other languages later. Note however that Malaga is rather low level tool that requires implementing the whole morphology of a language as a left associative grammar. Therefore languages that have simple or even moderately complex morphologies and do not require morphological analysis in their hyphenators should be implemented using other tools such as Hunspell. This is libvoikko, library for spellcheckers and hyphenators using Malaga natural language grammar development tool. The library is written in C. Currently only Finnish is supported, but the API of the library has been designed to allow adding support for other languages later. Note however that Malaga is rather low level tool that requires implementing the whole morphology of a language as a left associative grammar. Therefore languages that have simple or even moderately complex morphologies and do not require morphological analysis in their hyphenators should be implemented using other tools such as Hunspell.

We can use yum or dnf to install libvoikko on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install libvoikko.

Install libvoikko on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install libvoikko using yum by running the following command:

sudo yum -y install libvoikko

Install libvoikko on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install libvoikko using dnf by running the following command:

sudo dnf -y install libvoikko

How To Uninstall libvoikko on CentOS 7

To uninstall only the libvoikko package we can use the following command:

sudo dnf remove libvoikko

References

Summary

In this tutorial we learn how to install libvoikko on CentOS 7 using yum and dnf.