Compiled from libvoikko-js libvoikko with emscripten. Single file build with Finnish language dictionary Joukahainen included. Currently only morpho dictionary is included.
Libvoikko is licensed under GPL3, https://github.com/voikko/corevoikko/blob/master/LICENSE
Install from npm:
npm install voikko
Read autogenerated docs
Example:
import BaseVoikko from "voikko";
let voikko = BaseVoikko().init("fi");
console.log(voikko.analyze("Kangasalla"));
// =>
// [
// {
// BASEFORM: 'Kangasala',
// CLASS: 'paikannimi',
// FSTOUTPUT: '[Lep][Xp]Kangasala[X]kangas[Bm]a[Sade][Ny]lla',
// NUMBER: 'singular',
// SIJAMUOTO: 'ulkoolento',
// STRUCTURE: '=ippppp=pppp',
// WORDBASES: '+Kangasala(Kangasala)'
// }
// ]
console.log(voikko.analyze("Tampereella"));
// =>
// [
// {
// BASEFORM: 'Tampere',
// CLASS: 'paikannimi',
// FSTOUTPUT: '[Lep][Ipu][Xp]Tampere[X]tamperee[Sade][Ny]lla',
// NUMBER: 'singular',
// SIJAMUOTO: 'ulkoolento',
// STRUCTURE: '=ipppppppppp',
// WORDBASES: '+Tampere(Tampere)'
// }
// ]
Build yourself with apple silicon:
npm run build
or just copy the build command from package.json
docker build --output ./build -t voikko ./docker