private function loadFullDictionary(): void
    {
        $file = __DIR__ . '/../Dictionary/' . $this->language;
        if (!file_exists($file)) {
            $file = __DIR__ . '/../Dictionary/en_US';
        }

        self::$dictionary = array_filter(explode(PHP_EOL, file_get_contents($file)));
    }
private function loadFullDictionary(): void
    {
        $file = __DIR__ . '/../Dictionary/' . $this->language;
        if (!file_exists($file)) {
            $file = __DIR__ . '/../Dictionary/en_US';
        }

        self::$dictionary = array_filter(explode(PHP_EOL, file_get_contents($file)));
    }
private function loadFullDictionary ( ) : void { $ file = __DIR__ . '/../Dictionary/' . $ this -> language ; if ( ! file_exists ( $ file ) ) { $ file = __DIR__ . '/../Dictionary/en_US' ; } self :: $ dictionary = array_filter ( explode ( PHP_EOL , file_get_contents ( $ file ) ) ) ; }
Load the current language dictionary with a lot of words
to always be able to get a unique value.
Load the current language dictionary with a lot of words to always be able to get a unique value .