Overview

Namespaces

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

Classes

  • Context
  • Removal

Interfaces

  • ContextInterface
  • RemovalInterface
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Sastrawi (https://github.com/sastrawi/sastrawi)
 4:  *
 5:  * @link      http://github.com/sastrawi/sastrawi for the canonical source repository
 6:  * @license   https://github.com/sastrawi/sastrawi/blob/master/LICENSE The MIT License (MIT)
 7:  */
 8: 
 9: namespace Sastrawi\Stemmer\Context;
10: 
11: /**
12:  * Stemming Context Interface
13:  *
14:  * @since  0.1.0
15:  * @author Andy Librian <andylibrian@gmail.com>
16:  */
17: interface ContextInterface
18: {
19:     /**
20:      * @return string
21:      */
22:     public function getOriginalWord();
23: 
24:     /**
25:      * @return void
26:      */
27:     public function setCurrentWord($word);
28: 
29:     /**
30:      * @return string
31:      */
32:     public function getCurrentWord();
33: 
34:     /**
35:      * @return \Sastrawi\Dictionary\DictionaryInterface
36:      */
37:     public function getDictionary();
38: 
39:     /**
40:      * @return void
41:      */
42:     public function stopProcess();
43: 
44:     /**
45:      * @return boolean
46:      */
47:     public function processIsStopped();
48: 
49:     /**
50:      * @return void
51:      */
52:     public function addRemoval(RemovalInterface $removal);
53: 
54:     /**
55:      * @return RemovalInterface[]
56:      */
57:     public function getRemovals();
58: }
59: 
API documentation generated by ApiGen 2.8.0