2017 © Pedro PelĂĄez
 

library php-stemmer

Native PHP5 Stemmer

image

wamania/php-stemmer

Native PHP5 Stemmer

  • Friday, January 27, 2017
  • by Wamania
  • Repository
  • 9 Watchers
  • 37 Stars
  • 102,072 Installations
  • PHP
  • 5 Dependents
  • 1 Suggesters
  • 9 Forks
  • 1 Open issues
  • 4 Versions
  • 16 % Grown

The README.md

php-stemmer

PHP native implementation of Snowball stemmer https://snowballstem.org/, (*1)

Accept only UTF-8, (*2)

Languages

Available : - Catalan (by Orestes Sanchez Benavente orestes@estotienearreglo.es) - Danish - Dutch - English - Finnish (by Mikko Saari) - French - German - Italian - Norwegian - Portuguese - Romanian - Russian - Spanish - Swedish, (*3)

Installation

For PHP5, use 1.3, (*4)

composer require wamania/php-stemmer "^1.3"

For PHP7 use 2.x (branch 2.x is backward compatible with 1.x), (*5)

composer require wamania/php-stemmer "^2.0"

For PHP^7.3 and PHP^8.0 use 3.x (backward compatible, but phpunit^9 don't work with php < 7.3), (*6)

composer require wamania/php-stemmer "^3.0"

Usage

For 2.x, you should use the factory, (*7)

use Wamania\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');

Or the manager, (*8)

use Wamania\Snowball\StemmerManager;

$manager = new StemmerManager();
$stem = $manager->stem('automĂłvil', 'es');

In 1.3, you must instantiate manually, (*9)

use Wamania\Snowball\French;

$stemmer = new French();
$stem = $stemmer->stem('anticonstitutionnellement');

The Versions

27/01 2017

dev-master

9999999-dev

Native PHP5 Stemmer

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php stemmer porter

27/01 2017

1.2

1.2.0.0

Native PHP5 Stemmer

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php stemmer porter

07/12 2016

1.1

1.1.0.0

Native PHP5 Stemmer

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php stemmer porter

07/03 2016

1.0

1.0.0.0

Native PHP5 Stemmer

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php stemmer porter