{"id":24489109,"url":"https://github.com/kudashevs/rake-php","last_synced_at":"2026-02-14T12:02:17.094Z","repository":{"id":271664308,"uuid":"906366843","full_name":"kudashevs/rake-php","owner":"kudashevs","description":"A PHP implementation of the Rapid Automatic Keyword Exraction (RAKE) algorithm.","archived":false,"fork":false,"pushed_at":"2025-02-04T17:16:18.000Z","size":117,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T16:25:27.156Z","etag":null,"topics":["keywords","keywords-extraction","rake"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kudashevs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-20T18:34:29.000Z","updated_at":"2025-02-04T17:16:22.000Z","dependencies_parsed_at":"2025-01-09T06:41:20.431Z","dependency_job_id":"e12e4ed4-a2f9-442d-bd7b-4bffc6ac5b5e","html_url":"https://github.com/kudashevs/rake-php","commit_stats":null,"previous_names":["kudashevs/rake-php"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/kudashevs/rake-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Frake-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Frake-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Frake-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Frake-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kudashevs","download_url":"https://codeload.github.com/kudashevs/rake-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kudashevs%2Frake-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29443468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T10:51:12.367Z","status":"ssl_error","status_checked_at":"2026-02-14T10:50:52.088Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keywords","keywords-extraction","rake"],"created_at":"2025-01-21T16:30:47.238Z","updated_at":"2026-02-14T12:02:17.062Z","avatar_url":"https://github.com/kudashevs.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rake PHP\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/kudashevs/rake-php.svg)](https://packagist.org/packages/kudashevs/rake-php)\n[![Run Tests](https://github.com/kudashevs/rake-php/actions/workflows/run-tests.yml/badge.svg)](https://github.com/kudashevs/rake-php/actions/workflows/run-tests.yml)\n[![License MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md)\n\nA PHP implementation of the Rapid Automatic Keyword Extraction (RAKE) algorithm for extracting relevant keywords from\nindividual documents.\n\n\n## Installation\n\nYou can install the package via composer:\n```bash\ncomposer require kudashevs/rake-php\n```\n\n\n## Example\n\nHere is a common usage example:\n\n```php\nuse Kudashevs\\RakePhp\\Rake;\n\n$text = \"Compatibility of systems of linear constraints over the set of natural numbers.\";\n$text .= \"Criteria of compatibility of a system of linear Diophantine equations, strict inequations, and nonstrict inequations are considered.\";\n$text .= \"Upper bounds for components of a minimal set of solutions and algorithms of construction of minimal generating sets of solutions for all types of systems are given.\";\n$text .= \"These criteria and the corresponding algorithms for constructing a minimal supporting set of solutions can be used in solving all the considered types of systems and systems of mixed types\";\n\n$rake = new Rake();\n$keywords = $rake-\u003eextract($text);\n\nprint_r($keywords);\n// will result in\nArray\n(\n    [minimal generating sets] =\u003e 8.6666666666667\n    [linear diophantine equations] =\u003e 8.5\n    [minimal supporting set] =\u003e 7.6666666666667\n    [minimal set] =\u003e 4.6666666666667\n    [linear constraints] =\u003e 4.5\n    [natural numbers] =\u003e 4\n    [strict inequations] =\u003e 4\n    [nonstrict inequations] =\u003e 4\n    [upper bounds] =\u003e 4\n    [mixed types] =\u003e 3.6666666666667\n    [considered types] =\u003e 3.1666666666667\n    [set] =\u003e 2\n    [types] =\u003e 1.6666666666667\n    [considered] =\u003e 1.5\n    [compatibility] =\u003e 1\n    [systems] =\u003e 1\n    [criteria] =\u003e 1\n    [system] =\u003e 1\n    [components] =\u003e 1\n    [solutions] =\u003e 1\n    [algorithms] =\u003e 1\n    [construction] =\u003e 1\n    [constructing] =\u003e 1\n    [solving] =\u003e 1\n)\n```\n\nMore information about RAKE and its usage, you can find in [the original paper](https://www.researchgate.net/publication/227988510_Automatic_Keyword_Extraction_from_Individual_Documents).\n\n\n## Options\n\nThe `Rake` class accepts some configuration options:\n```\n'modifiers' =\u003e []               # A string, an instance or an array of Modifiers\n'stoplist' =\u003e Stoplist::class   # A Stoplist instance that provides a list of stop words\n'sorter' =\u003e Sorter::class       # A Sorter instance that sorts the output of the algorithm\n'exclude' =\u003e []                 # An array of words or regexes that will be excluded from a stoplist\n'include' =\u003e []                 # An array of words or regexes that will be included in a stoplist\n```\n\n**Note:** the configuration options `exclude` and `include` accept [simple regexes](#simple-regular-expressions).\n\n**Note:** the configuration option `exclude` has a higher priority than the `include` option.\n\n**Note:** At the moment of instantiation, the `Rake` class can throw an `InvalidOptionType` exception. This exception\nextends a built-in `InvalidArgumentException` class, so it is easy to deal with.\n\n### Simple regular expressions\n\nThe configuration options `exclude` and `include` accept regular expressions. The current expressions are currently supported:\n- `.+(ly)` - a one or more match with grouping\n- `word(s)` - a match with alternation at the end of a word\n- `(word|letter)` - an alternation of words\n\n\n## Testing\n\n```bash\ncomposer test\n```\n\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n **Note:** Please make sure to update tests as appropriate.\n\n\n## License\n\nThe MIT License (MIT). Please see the [License file](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudashevs%2Frake-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkudashevs%2Frake-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkudashevs%2Frake-php/lists"}