Skip to content

StopWords

Phonetic-Helper-Class

  • Full name: \voku\helper\StopWords
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Properties

availableLanguages

private static array $availableLanguages
  • This property is static.

stopWords

private array $stopWords

Methods

loadLanguageData

Load language-data from one language.

private loadLanguageData(string $language = 'de'): mixed

Parameters:

Parameter Type Description
$language string

Throws:


getData

Get data from "/data/*.php".

private getData(string $file): array

Parameters:

Parameter Type Description
$file string

Return Value:

Will return an empty array on error.


getStopWordsFromLanguage

Get the stop-words from one language.

public getStopWordsFromLanguage(string $language = 'de'): array

Parameters:

Parameter Type Description
$language string

Throws:


loadLanguageDataAll

private loadLanguageDataAll(): mixed

getStopWordsAll

Get all stop-words from all languages.

public getStopWordsAll(): array

Throws:



Automatically generated on 2025-03-18