Skip to content

Welcome to our weekly research support coffee hour on Zoom! Click here for more information.

kp-spell

kp-spell provides Finnish and Swedish spell-checking on CSC systems. While it is used through the command-line tools of enchant-2 — a generic library that offers a single interface to several spelling backends — kp-spell is more than plain enchant: it bundles the language-specific backends and dictionaries needed for Finnish (via Voikko) and Swedish (via Hunspell) and exposes them through the common enchant-2 interface.

Available

  • Roihu: 1.0

License

kp-spell builds on enchant, which is licensed under the LGPL 2.1 or later, together with the Voikko and Hunspell backends and their dictionaries, which have their own open-source licenses.

Usage

Initialize kp-spell with:

module load kp-spell

Spell-checking is done with enchant-2, and enchant-lsmod-2 lists the available dictionaries. Use the language code with -d (fi for Finnish, sv for Swedish). For example, to check Finnish text in ispell pipe mode:

echo "Koiro käveli kadulla." | enchant-2 -a -d fi

This returns spelling suggestions in ispell format, for example:

& Koiro 5 0: Kairo, Kiro, Koira, Koiso, Koiaro

A personal word list can be supplied with the -p option.

More information

Do you find this page useful?
Thank you for your feedback!
Thank you! Your feedback is appreciated.

Please let us know how we could improve this page by contacting us or by creating an issue in GitHub. You can also edit this page yourself and contribute your improvements by creating a pull request.