raattori

Converts formal Finnish into various dialects. Rewrite of something called Turkuraattori originally developed by Netello Systems.

Usage no npm install needed!

<script type="module">
  import raattori from 'https://cdn.skypack.dev/raattori';
</script>

README

raattori

Converts formal Finnish into various dialects. Rewrite of something called Turkuraattori originally developed by Netello Systems.

Online demo

Supported dialects

  • turku
  • manse
  • oulu

Installation

$ yarn add raattori

Usage

The library exposes single function which takes the input string and dialect name as arguments.

import raattori from 'raattori';

console.log(raattori(
  'Hän siunasi ne sanoen: »Olkaa hedelmälliset ja lisääntykää ja täyttäkää meren vedet, ja linnut lisääntykööt maan päällä.»',
  'turku'
));

Should output something like this into the console:

Hän siunasi ne sanoen: »Olkaa herelmälliset ja lisääntykää ja täyttäkää meren vedet, ja linnut lisääntykööt maan pääl.»

If dialect is omitted, turku dialect is chosen by default.

CLI

Raattori also comes with an optional CLI which means it can also be used from command line. To do this, first install the package globally with:

$ yarn global add raattori

And then use the command raattori like this:

$ raattori --dialect turku "Minä olen komentoriviohjelma."
Mää olen simmottos sit vaa komentoriviohjelma.