Fork of x3wils port of stemmer for Czech language for use as stemmer for TNTSearch

v1.1 2018-11-24 19:46 UTC

This package is auto-updated.

Last update: 2022-05-25 03:43:52 UTC


This is fork of x3wil/czech-stemmer repo, class is modified for use with TNTSearch

Port of stemmer for Czech language.

Original code is a Java class by Jacques Savoy released under BSD license.


Install using Composer:

composer require 'tvaliasek/tnt-czech-stemmer'


use TeamTNT\TNTSearch\TNTSearch;

$tnt = new TNTSearch;

    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'dbname',
    'username'  => 'user',
    'password'  => 'pass',
    'storage'   => '/var/www/tntsearch/examples/',
    'stemmer'   => \Tvaliasek\Search\TNTCzechStemmer::class

Standalone usage

use tvaliasek\Search\CzechStemmer;

// velk

// vel
Original word stemmLight() stemmAgressive()
velí vel vel
velmi vel vel
velkém vel vel
velcí velc vel
velká velk vel
velkému velk vel
velký velk vel
velké velk vel
velkou velk vel
velkým velk vel
velkých velk vel
velkého velk vel
velení velen vel
velice velik vel
veliký velik vel
velikými velik vel
velikou velik vel
veliká velik vel
velitel velitel vel
velitele velitel vel
velitelem velitel vel
velitelů velitel vel