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 Stemmer

Indonesian Stemmer. Nazief & Adriani, CS Stemmer, ECS Stemmer, Improved ECS.

Sastrawi\Stemmer\Stemmer implements Sastrawi\Stemmer\StemmerInterface
Namespace: Sastrawi\Stemmer
Link: https://github.com/sastrawi/sastrawi/wiki/Resources
Located at Sastrawi/Stemmer/Stemmer.php
Methods summary
public
# __construct( Sastrawi\Dictionary\DictionaryInterface $dictionary )
public Sastrawi\Dictionary\DictionaryInterface
# getDictionary( )

Returns

Sastrawi\Dictionary\DictionaryInterface
public string
# stem( string $text )

Stem a text string to its common stem form.

Stem a text string 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()
protected string
# stemWord( string $word )

Stem a word to its common stem form.

Stem a word to its common stem form.

Parameters

$word
string
$word the word to stem, e.g : memberdayakan

Returns

string
common stem form, e.g : daya
protected boolean
# isPlural( string $word )

Parameters

$word
string
$word

Returns

boolean
protected string
# stemPluralWord( string $plural )

Stem a plural word to its common stem form. Asian J. (2007) “Effective Techniques for Indonesian Text Retrieval” page 76-77.

Stem a plural word to its common stem form. Asian J. (2007) “Effective Techniques for Indonesian Text Retrieval” page 76-77.

Parameters

$plural
string
$plural the word to stem, e.g : bersama-sama

Returns

string
common stem form, e.g : sama

Link

http://researchbank.rmit.edu.au/eserv/rmit:6312/Asian.pdf
protected string
# stemSingularWord( string $word )

Stem a singular word to its common stem form.

Stem a singular word to its common stem form.

Parameters

$word
string
$word the word to stem, e.g : mengalahkan

Returns

string
common stem form, e.g : kalah
Properties summary
protected Sastrawi\Dictionary\DictionaryInterface $dictionary
#

The dictionary containing root words

The dictionary containing root words

protected Sastrawi\Stemmer\Context\Visitor\VisitorProvider $visitorProvider
#

Visitor provider

Visitor provider

API documentation generated by ApiGen 2.8.0