PHP code example of siiptuo / voikko
1. Go to this page and download the library: Download siiptuo/voikko library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
siiptuo / voikko example snippets
$voikko = new \Siiptuo\Voikko\Voikko();
$word = "kissammeko";
echo " word: " . $word . PHP_EOL;
echo "hyphenation: " . $voikko->hyphenate($word) . PHP_EOL;
foreach ($voikko->analyzeWord($word) as $analysis) {
echo " base form: " . $analysis->baseForm . PHP_EOL;
}