raattori
Converts formal Finnish into various dialects. Rewrite of something called Turkuraattori originally developed by Netello Systems.
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.
; console;
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.