mtcmedia/stemmer

Exension of wamania stemmer with multi-word support and cleanup

v1.2.0 2025-03-21 15:06 UTC

This package is auto-updated.

Last update: 2025-03-21 15:07:38 UTC


README

Adaptation of https://github.com/wamania/php-stemmer stemmer algorithm. This package extends the original by adding sentence parsing functionality.

Installation

Require via composer

composer require mtcmedia/stemmer

Usage

use Mtc\Stemmer\Stemmer;

// Default language is set as english
$stem = Stemmer::multiStem('This is my sentence');

$stem = Stemmer::multiStem("c'est ma phrase', 'french");

Contributing

Please see Contributing for details.