PHP code example of masroore / php-stemmer
1. Go to this page and download the library: Download masroore/php-stemmer 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/ */
masroore / php-stemmer example snippets
use Kaiju\Snowball\StemmerFactory;
// use ISO_639 (2 or 3 letters) or language name in english
$stemmer = StemmerFactory::create('fr');
$stemmer = StemmerFactory::create ('spanish');
// then
$stem = $stemmer->stem('automóvil');
use Kaiju\Snowball\StemmerManager;
$manager = new StemmerManager();
$stem = $manager->stem('automóvil', 'es');
bash
composer