Overview

Namespaces

  • PHP
  • Sastrawi
    • Dictionary
    • Morphology
      • Disambiguator
    • Specification
    • Stemmer
      • Cache
      • ConfixStripping
      • Context
        • Visitor
      • Filter
    • StopWordRemover

Classes

  • CachedStemmer
  • Stemmer
  • StemmerFactory

Interfaces

  • StemmerInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class CachedStemmer

The stemmer interface

Sastrawi\Stemmer\CachedStemmer implements Sastrawi\Stemmer\StemmerInterface
Namespace: Sastrawi\Stemmer
Author: Andy Librian <andylibrian@gmail.com>
Since: 0.4.0
Located at Sastrawi/Stemmer/CachedStemmer.php
Methods summary
public
# __construct( Sastrawi\Stemmer\Cache\CacheInterface $cache, Sastrawi\Stemmer\StemmerInterface $delegatedStemmer )
public string
# stem( string $text )

Stem a text to its common stem form

Stem a text to its common stem form

Parameters

$text
string
$text the text string to stem, e.g : memberdayakan pembangunan

Returns

string
common stem form, e.g : daya bangun

Implementation of

Sastrawi\Stemmer\StemmerInterface::stem()
public
# getCache( )
Properties summary
protected mixed $cache
#
protected mixed $delegatedStemmer
#
API documentation generated by ApiGen 2.8.0