Skip to content

Docs CSC now features an automatic Finnish translation. Click here for more information.

Warning!

Puhti and Mahti are being decommissioned in stages, and their storage areas will become fully unavailable from 15 October 2026. Clean up unnecessary files and move any data you need to keep by 31 August 2026. See the Roihu data migration guide for instructions on transferring your data to Roihu.

Puhti scratch is very full: keep only active data there and move or delete everything else. No new Puhti scratch quota will be granted.

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

  • Puhti: 1.0
  • 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