Overview

Namespaces

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

Classes

  • ArrayDictionary

Interfaces

  • DictionaryInterface
  • 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\Dictionary;
10: 
11: /**
12:  * The Dictionary interface used by the stemmer.
13:  *
14:  * @since  0.1.0
15:  * @author Andy Librian <andylibrian@gmail.com>
16:  */
17: interface DictionaryInterface extends \Countable
18: {
19:     /**
20:      * Checks whether a word is contained in the dictionary.
21:      *
22:      * @param string $word The word to search for.
23:      *
24:      * @return boolean TRUE if the dictionary contains the word, FALSE otherwise.
25:      */
26:     public function contains($word);
27: }
28: 
API documentation generated by ApiGen 2.8.0