Class ArrayDictionary
Implementation of the DictionaryInterface using Array
-
Sastrawi\Dictionary\ArrayDictionary
implements
Sastrawi\Dictionary\DictionaryInterface
Methods summary
public
|
|
public
boolean
|
#
contains( string $word )
Checks whether a word is contained in the dictionary.
Checks whether a word is contained in the dictionary.
Parameters
- $word
string $word The word to search for.
Returns
boolean TRUE if the dictionary contains the word, FALSE otherwise.
Implementation of
|
public
|
|
public
|
#
addWords( array $words )
Add multiple words to the dictionary
Add multiple words to the dictionary
Parameters
|
public
|
#
add( string $word )
Add a word to the dictionary
Add a word to the dictionary
Parameters
|
Properties summary
protected
string[]
|
$words
|
array() |
|