Skip to content

Puhti and Mahti computing services have been decommissioned. Puhti and Mahti login nodes and storage services will remain available until 15 October 2026, but are no longer covered by service contracts. Please clean up and migrate your data to Roihu ASAP. See Roihu data migration guide for instructions.

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