From 22588e58f31f60586445c19031979aaffcd95714 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 22 Oct 2021 07:46:30 +0000 Subject: install urlify via composer --- vendor/voku/stop-words/CHANGELOG.md | 25 + vendor/voku/stop-words/LICENSE | 22 + vendor/voku/stop-words/README.md | 73 ++ vendor/voku/stop-words/composer.json | 27 + .../voku/stop-words/src/voku/helper/StopWords.php | 143 +++ .../src/voku/helper/StopWordsLanguageNotExists.php | 14 + .../stop-words/src/voku/helper/stopwords/ar.php | 172 ++++ .../stop-words/src/voku/helper/stopwords/bg.php | 269 +++++ .../stop-words/src/voku/helper/stopwords/ca.php | 104 ++ .../stop-words/src/voku/helper/stopwords/cz.php | 266 +++++ .../stop-words/src/voku/helper/stopwords/da.php | 180 ++++ .../stop-words/src/voku/helper/stopwords/de.php | 1033 ++++++++++++++++++++ .../stop-words/src/voku/helper/stopwords/el.php | 275 ++++++ .../stop-words/src/voku/helper/stopwords/en.php | 329 +++++++ .../stop-words/src/voku/helper/stopwords/eo.php | 183 ++++ .../stop-words/src/voku/helper/stopwords/es.php | 323 ++++++ .../stop-words/src/voku/helper/stopwords/et.php | 45 + .../stop-words/src/voku/helper/stopwords/fi.php | 245 +++++ .../stop-words/src/voku/helper/stopwords/fr.php | 717 ++++++++++++++ .../stop-words/src/voku/helper/stopwords/hi.php | 235 +++++ .../stop-words/src/voku/helper/stopwords/hr.php | 189 ++++ .../stop-words/src/voku/helper/stopwords/hu.php | 209 ++++ .../stop-words/src/voku/helper/stopwords/id.php | 367 +++++++ .../stop-words/src/voku/helper/stopwords/it.php | 290 ++++++ .../stop-words/src/voku/helper/stopwords/ka.php | 383 ++++++++ .../stop-words/src/voku/helper/stopwords/lt.php | 484 +++++++++ .../stop-words/src/voku/helper/stopwords/lv.php | 171 ++++ .../stop-words/src/voku/helper/stopwords/nl.php | 111 +++ .../stop-words/src/voku/helper/stopwords/no.php | 186 ++++ .../stop-words/src/voku/helper/stopwords/pl.php | 148 +++ .../stop-words/src/voku/helper/stopwords/pt.php | 214 ++++ .../stop-words/src/voku/helper/stopwords/ro.php | 268 +++++ .../stop-words/src/voku/helper/stopwords/ru.php | 161 +++ .../stop-words/src/voku/helper/stopwords/sk.php | 183 ++++ .../stop-words/src/voku/helper/stopwords/sv.php | 124 +++ .../stop-words/src/voku/helper/stopwords/tr.php | 63 ++ .../stop-words/src/voku/helper/stopwords/uk.php | 395 ++++++++ .../stop-words/src/voku/helper/stopwords/vi.php | 655 +++++++++++++ 38 files changed, 9281 insertions(+) create mode 100644 vendor/voku/stop-words/CHANGELOG.md create mode 100644 vendor/voku/stop-words/LICENSE create mode 100644 vendor/voku/stop-words/README.md create mode 100644 vendor/voku/stop-words/composer.json create mode 100644 vendor/voku/stop-words/src/voku/helper/StopWords.php create mode 100644 vendor/voku/stop-words/src/voku/helper/StopWordsLanguageNotExists.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/ar.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/bg.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/ca.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/cz.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/da.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/de.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/el.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/en.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/eo.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/es.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/et.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/fi.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/fr.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/hi.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/hr.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/hu.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/id.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/it.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/ka.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/lt.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/lv.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/nl.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/no.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/pl.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/pt.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/ro.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/ru.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/sk.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/sv.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/tr.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/uk.php create mode 100644 vendor/voku/stop-words/src/voku/helper/stopwords/vi.php (limited to 'vendor/voku/stop-words') diff --git a/vendor/voku/stop-words/CHANGELOG.md b/vendor/voku/stop-words/CHANGELOG.md new file mode 100644 index 000000000..12d4a270b --- /dev/null +++ b/vendor/voku/stop-words/CHANGELOG.md @@ -0,0 +1,25 @@ +# Change log +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/). + +## [Unreleased] + +## [2.0.1] - 2018-11-23 +### Fix +- switch czech and catalan stopwords | thx@retep007 + +## [2.0.0] - 2017-11-26 +### Changed +- "php": ">=7.0" + +## [1.2.0] - 2017-05-22 +### Changed +- add more languages + +## [1.1.0] - 2017-05-12 +### Changed +- add more languages + +## [1.0.0] - 2017-05-05 +### Changed +- init diff --git a/vendor/voku/stop-words/LICENSE b/vendor/voku/stop-words/LICENSE new file mode 100644 index 000000000..8fba26e3e --- /dev/null +++ b/vendor/voku/stop-words/LICENSE @@ -0,0 +1,22 @@ +The MIT License (MIT) + +Copyright (c) 2015 Lars Moelleken + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/vendor/voku/stop-words/README.md b/vendor/voku/stop-words/README.md new file mode 100644 index 000000000..66a3bd377 --- /dev/null +++ b/vendor/voku/stop-words/README.md @@ -0,0 +1,73 @@ +[![Build Status](https://travis-ci.org/voku/stop-words.svg?branch=master)](https://travis-ci.org/voku/stop-words) +[![Coverage Status](https://coveralls.io/repos/github/voku/stop-words/badge.svg?branch=master)](https://coveralls.io/github/voku/stop-words?branch=master) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/voku/stop-words/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/voku/stop-words/?branch=master) +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dabeb6d93ead41309e4bbf80c0ec984e)](https://www.codacy.com/app/voku/stop-words?utm_source=github.com&utm_medium=referral&utm_content=voku/stop-words&utm_campaign=Badge_Grade) +[![SensioLabsInsight](https://insight.sensiolabs.com/projects/316837f1-afb0-4ea5-938e-340527eeb4e6/mini.png)](https://insight.sensiolabs.com/projects/316837f1-afb0-4ea5-938e-340527eeb4e6) +[![Latest Stable Version](https://poser.pugx.org/voku/stop-words/v/stable)](https://packagist.org/packages/voku/stop-words) +[![Total Downloads](https://poser.pugx.org/voku/stop-words/downloads)](https://packagist.org/packages/voku/stop-words) +[![Latest Unstable Version](https://poser.pugx.org/voku/stop-words/v/unstable)](https://packagist.org/packages/voku/stop-words) +[![License](https://poser.pugx.org/voku/stop-words/license)](https://packagist.org/packages/voku/stop-words) + +# Stop-Words + +## Description + +A collection of stop words stop words in various languages for e.g. search-functions. + +* [Installation](#installation) +* [Usage](#usage) +* [History](#history) + +## Installation + +1. Install and use [composer](https://getcomposer.org/doc/00-intro.md) in your project. +2. Require this package via composer: + +```sh +composer require voku/stop-words +``` + +## Usage + +```php +$stopWords = new StopWords(); +$stopWords->getStopWordsFromLanguage('de'); +``` + +Available languages +------------------- +* Arabic (ar) +* Bulgarian (bg) +* Catalan (ca) +* Croatian (hr) +* Czech (cz) +* Danish (da) +* Dutch (nl) +* English (en) +* Esperanto (eo) +* Estonian (et) +* Finnish (fi) +* French (fr) +* Georgian (ka) +* German (de) +* Greek (el) +* Hindi (hi) +* Hungarian (hu) +* Indonesian (id) +* Italian (it) +* Latvian (lv) +* Lithuanian (lt) +* Norwegian (no) +* Polish (pl) +* Portuguese (pt) +* Romanian (ro) +* Russian (ru) +* Slovak (sk) +* Spanish (es) +* Swedish (sv) +* Turkish (tr) +* Ukrainian (uk) +* Vietnamese (vi) + +## History +See [CHANGELOG](CHANGELOG.md) for the full history of changes. diff --git a/vendor/voku/stop-words/composer.json b/vendor/voku/stop-words/composer.json new file mode 100644 index 000000000..e62caa578 --- /dev/null +++ b/vendor/voku/stop-words/composer.json @@ -0,0 +1,27 @@ +{ + "name": "voku/stop-words", + "description": "Stop-Words via PHP", + "keywords": [ + "stop-words", + "stop words" + ], + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "http://www.moelleken.org/" + } + ], + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "require": { + "php": ">=7.0.0" + }, + "require-dev": { + "phpunit/phpunit": "~6.0" + } +} diff --git a/vendor/voku/stop-words/src/voku/helper/StopWords.php b/vendor/voku/stop-words/src/voku/helper/StopWords.php new file mode 100644 index 000000000..8450d9c42 --- /dev/null +++ b/vendor/voku/stop-words/src/voku/helper/StopWords.php @@ -0,0 +1,143 @@ +stopWords[$language] = $this->getData($language); + } + + /** + * Get data from "/data/*.php". + * + * @param string $file + * + * @return array

Will return an empty array on error.

+ */ + private function getData(string $file): array + { + static $RESULT_STOP_WORDS_CACHE = array(); + + if (isset($RESULT_STOP_WORDS_CACHE[$file])) { + return $RESULT_STOP_WORDS_CACHE[$file]; + } + + $file = __DIR__ . '/stopwords/' . $file . '.php'; + if (file_exists($file)) { + /** @noinspection PhpIncludeInspection */ + $RESULT_STOP_WORDS_CACHE[$file] = require $file; + } else { + $RESULT_STOP_WORDS_CACHE[$file] = array(); + } + + return $RESULT_STOP_WORDS_CACHE[$file]; + } + + /** + * Get the stop-words from one language. + * + * @param string $language + * + * @return array + * + * @throws StopWordsLanguageNotExists + */ + public function getStopWordsFromLanguage(string $language = 'de'): array + { + if (\in_array($language, self::$availableLanguages, true) === false) { + throw new StopWordsLanguageNotExists('language not supported: ' . $language); + } + + if (!isset($this->stopWords[$language])) { + $this->loadLanguageData($language); + } + + return $this->stopWords[$language]; + } + + private function loadLanguageDataAll() + { + foreach (self::$availableLanguages as $language) { + if (!isset($this->stopWords[$language])) { + $this->loadLanguageData($language); + } + } + } + + /** + * Get all stop-words from all languages. + * + * @return array + * + * @throws StopWordsLanguageNotExists + */ + public function getStopWordsAll(): array + { + $this->loadLanguageDataAll(); + + return $this->stopWords; + } +} diff --git a/vendor/voku/stop-words/src/voku/helper/StopWordsLanguageNotExists.php b/vendor/voku/stop-words/src/voku/helper/StopWordsLanguageNotExists.php new file mode 100644 index 000000000..7c9a6dc5e --- /dev/null +++ b/vendor/voku/stop-words/src/voku/helper/StopWordsLanguageNotExists.php @@ -0,0 +1,14 @@ +