PHPackages                             donatello-za/rake-php-plus - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. donatello-za/rake-php-plus

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

donatello-za/rake-php-plus
==========================

Yet another PHP implementation of the Rapid Automatic Keyword Extraction algorithm (RAKE).

v2.0.0(1y ago)271865.1k—5.1%48[2 issues](https://github.com/Donatello-za/rake-php-plus/issues)[1 PRs](https://github.com/Donatello-za/rake-php-plus/pulls)8MITPHPPHP &gt;=7.4.0

Since Sep 5Pushed 1y ago6 watchersCompare

[ Source](https://github.com/Donatello-za/rake-php-plus)[ Packagist](https://packagist.org/packages/donatello-za/rake-php-plus)[ Docs](https://github.com/Donatello-za/rake-php-plus)[ RSS](/packages/donatello-za-rake-php-plus/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (35)Used By (8)

rake-php-plus
=============

[](#rake-php-plus)

A keyword and phrase extraction library based on the Rapid Automatic Keyword Extraction algorithm (RAKE).

[![Latest Stable Version](https://camo.githubusercontent.com/7064538f15d75927fb9fa8c86a0beeb29336c1f04d9a1b081c40aba12f2742c1/68747470733a2f2f706f7365722e707567782e6f72672f646f6e6174656c6c6f2d7a612f72616b652d7068702d706c75732f762f737461626c65)](https://packagist.org/packages/donatello-za/rake-php-plus)[![Total Downloads](https://camo.githubusercontent.com/e9ae1f2bb6eee18c6c9210b39306df80e468a251aae2199e0c1a8c3073129376/68747470733a2f2f706f7365722e707567782e6f72672f646f6e6174656c6c6f2d7a612f72616b652d7068702d706c75732f646f776e6c6f616473)](https://packagist.org/packages/donatello-za/rake-php-plus)[![License](https://camo.githubusercontent.com/b2d1021e23db6e53017b99ca9e6ab20e82b0f7a8ba261e7ab6c2a79992ea5cd2/68747470733a2f2f706f7365722e707567782e6f72672f646f6e6174656c6c6f2d7a612f72616b652d7068702d706c75732f6c6963656e7365)](https://packagist.org/packages/donatello-za/rake-php-plus)

Introduction
------------

[](#introduction)

Keywords describe the main topics expressed in a document/text. Keyword *extraction* in turn allows for the extraction of important words and phrases from text.

Extracted keywords can be used for things like:

- Building a list of useful tags out of a larger text
- Building search indexes and search engines
- Grouping similar content by its topic.

Extracted phrases can be used for things like:

- Highlighting important areas of a larger text
- Language or documentation analysis
- Building intelligent searches based on contextual terms

This library provides an easy method for PHP developers to get a list of keywords and phrases from a string of text and is based on another smaller and unmaintained project called [RAKE-PHP](https://github.com/Richdark/RAKE-PHP) by Richard Filipčík, which is a translation from a Python implementation simply called [RAKE](https://github.com/aneesha/RAKE).

> *As described in: Rose, S., Engel, D., Cramer, N., &amp; Cowley, W. (2010). [Automatic Keyword Extraction from Individual Documents](https://www.researchgate.net/publication/227988510_Automatic_Keyword_Extraction_from_Individual_Documents). In M. W. Berry &amp; J. Kogan (Eds.), Text Mining: Theory and Applications: John Wiley &amp; Sons.*

This particular package intends to include the following benefits over the original [RAKE-PHP](https://github.com/Richdark/RAKE-PHP) package:

1. [PSR-2](http://www.php-fig.org/psr/psr-2/) coding standards.
2. [PSR-4](http://www.php-fig.org/psr/psr-4/) to be [Composer](https://getcomposer.org) installable.
3. Additional functionality such as method chaining.
4. Multiple ways to provide source stopwords.
5. Full unit test coverage.
6. Performance improvements.
7. Improved documentation.
8. Easy language integration and multibyte string support.

Currently Supported Languages
-----------------------------

[](#currently-supported-languages)

- Afrikaans (af\_ZA)
- Arabic (United Arab Emirates)/لإمارات العربية المتحدة (ar\_AE)
- Brazilian Portuguese/português do Brasil (pt\_BR)
- English US (en\_US)
- European Portuguese/português europeu (pt\_PT)
- French/le français (fr\_FR)
- German (Germany)/Deutsch (Deutschland) (de\_DE)
- Italian/italiano (it\_IT)
- Polish/język polski (pl\_PL)
- Russian/русский язык (ru\_RU)
- Sorani Kurdish/سۆرانی (ckb\_IQ)
- Spanish/español (es\_AR)
- Tamil/தமிழ் (ta\_TA)
- Turkish/Türkçe (tr\_TR)
- Persian/Farsi/فارسی (fa\_IR)
- Dutch/Nederlands (nl\_NL)
- Swedish/svenska (sv\_SE)

> If your language is not listed here it can be added, please see the section called **[How to add additional languages](#how-to-add-additional-languages)** at the bottom of the page.

Version
-------

[](#version)

v2.0.0

Special Thanks
--------------

[](#special-thanks)

- [Sergey Kudashev](https://github.com/kudashevs): Big help with refactoring v2 of the library.
- [Jarosław Wasilewski](https://github.com/Orajo): Polish language and improving multi-byte support.
- [Lev Morozov](https://github.com/levmorozov): French and Russian languages.
- [Igor Carvalho](https://github.com/Carvlho): Brazilian Portuguese language.
- [Khoshbin Ali Ahmed](https://github.com/Xoshbin): Sorani Kurdish and Arabic languages.
- [RhaPT](https://github.com/RhaPT): European Portuguese language.
- [Peter Thaleikis](https://github.com/spekulatius): German language.
- [Yusuf Usta](https://github.com/yusufusta): Turkish language.
- [orthosie](https://github.com/orthosie): Tamil language.
- [ScIEnzY](https://github.com/ScIEnzY): Italian language.
- [Reza Rabbani](https://github.com/thrashzone13): Persian language.
- [Anne van der Aar](https://github.com/annevanderaar): Dutch language.

Installation
------------

[](#installation)

### Installing with Composer

[](#installing-with-composer)

Although v1 of this library is compatible up to PHP 8.3 and will be maintained for the foreseeable future, it is recommended to install v2 to get the benefits of what PHP 7.4 and above has to offer.

```
# Latest: PHP v7.4 to v8.3 support
$ composer require donatello-za/rake-php-plus:^2.0

# Older: PHP v5.4 to v8.3 support
$ composer require donatello-za/rake-php-plus:^1.0
```

Or add the following to your `composer.json` and run `composer install`

```
{
    "require": {
        "donatello-za/rake-php-plus": "^2.0"
    }
}
```

```
