joppuyo / voikko-node-web-api

Use Voikko over HTTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voikko Node Web API

Use Voikko over HTTP

Installing

  1. Clone project
  2. Run npm install
  3. Copy config.sample.js to config.js
  4. Run npm install -g pm2
  5. Run pm2 start index.js

Usage

Analyze

GET /analyze/kerrostalollakin

=>

[ { BASEFORM: 'kerrostalo',
    CLASS: 'nimisana',
    FOCUS: 'kin',
    FSTOUTPUT: '[Ln][Xp]kerros[X]kerro[Sn][Ny]s[Bh][Bc][Ln][Ica][Xp]talo[X]talo[Sade][Ny]lla[Fkin][Ef]kin',
    NUMBER: 'singular',
    POSSIBLE_GEOGRAPHICAL_NAME: 'true',
    SIJAMUOTO: 'ulkoolento',
    STRUCTURE: '=pppppp=pppppppppp',
    WORDBASES: '+kerros(kerros)+talo(talo)' } ]

License

GPL v3 or later

This application uses Voikko library built from commit hash 9449717 using Emscripten. Library has been built using standard Voikko dictionary with commit hash ee00104.

Voikko library located at lib/libvoikko.js is licensed under GNU GPL 2 or later.

About

Use Voikko over HTTP

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%