mtcmedia/stemmer

Exension of wamania stemmer with multi-word support and cleanup

v1.1.0 2023-03-22 12:47 UTC

This package is auto-updated.

Last update: 2024-10-22 16:18:46 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.