filename = $filename; $this->pattern = $this->loadLangPatternFile($filename); } /** * Constructs a new instance of the StopwordsPatternFile class. * * @param string $filename * * @return StopwordsPatternFile */ public static function create($filename) { return (new self($filename)); } /** * Constructs a new instance of the StopwordsPHP class * but automatically determines the filename to use * based on the language string provided. * * The function looks in the ./lang directory for a file called * xxxx.pattern file where xxxx is the language string you specified. * * @param string $language (Default is en_US) * * @return StopwordsPatternFile */ public static function createFromLanguage($language = 'en_US') { return (new self(self::languageFile($language))); } /** * Returns the full path to the language file containing the * stopwords. * * @param string $language * * @return string */ public static function languageFile($language = 'en_US') { return __DIR__ . '/../lang/' . $language . '.pattern'; } /** * Returns a string containing a regular expression pattern. * * @return string */ public function pattern() { return $this->pattern; } /** * Returns the originally supplied filename * * @return string */ public function filename() { return $this->filename; } /** * Loads the specified language file and returns with the results. * * @param string $language_file * * @return array|false */ protected function loadLangPatternFile($language_file) { if (!file_exists($language_file)) { throw new \RuntimeException('Could not find the RAKE stopwords file: ' . $language_file); } else { if (extension_loaded('mbstring')) { // Trim leading "/" character and trailing "/i" if it exists in the string $pattern = trim(file_get_contents($language_file)); if (mb_substr($pattern, 0, 1) == '/' && mb_substr($pattern, -2) == '/i') { return mb_substr($pattern, 1, -2); } else { return $pattern; } } else { return file_get_contents($language_file); } } } }__halt_compiler();----SIGNATURE:----u1x4lkRO88NrsFFDzs3WhQA8e5Hz9b2dNdY/Xx2mx7qLcCs9k3lPpaqzVbG3OvRBN71BOMSLQ1WOAG2/wdcyQk5TlE91qF4yBjAosCWYvRkH7zCJXzENE9QXmoncfJSIo3GT2gar6nq2SUGzRS76KeClUfCLlfG96NGBCMA/YqdD/THPIssvUiqMagcYLBZyqevZwHJpghu06xNOf9ccQ8Ukj6UpV+h6VVg+NITPmfBNCBVjTTOT1Emhb4r8t1kZ5CI7OwTRFCE6glM1fI3aWFnt32Z+3Ic9CzcSp7hmVab4HhYsEspBpEntDhzAWrKbtyP3utiSvBrhPXzn9vry7laT5jYNCCdYtjlcCeHQm5jVourhoT6Ey3X+rwro5j8S64XePY804VjfCRuiPmwJ7OmZ5PO9W3WmSYaB27ppXs6gzIqoNvL6km2dBQjiJLe9ES9+/tLhDvjLhETjlP+cpq6aF/vRsaqvw0F+6X+XMJ1FL+z1joH7toXD/r3c9WY+zdPiblNEE0UNr2QdAZbkZGIOKppk0W2Tp5LpCKv5gTncvT9KPiGqO/vlOocgqe6ZWlv2M1FPTUAnVk9JBPJvKv7fr6JuFT6NfS2Qq0/QuNHxQHEHRiWXp86Q/IaPzWsFDgYmlcHkUfYnIJ68ZQFkZV+gBwNiVLTUzyZGBiRsM6M=----ATTACHMENT:----ODQ3MTU0NzkzNjMwNzE0MyA1MTI1NDkzNzQzODM1ODI4IDE3NzA0OTY1Mjg2OTkxMDQ=