{"id":17189450,"url":"https://github.com/nadar/stemming","last_synced_at":"2025-04-13T19:24:53.371Z","repository":{"id":52714942,"uuid":"85568496","full_name":"nadar/stemming","owner":"nadar","description":"PHP Stemming Collection","archived":false,"fork":false,"pushed_at":"2023-01-11T15:38:58.000Z","size":49,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T10:07:10.627Z","etag":null,"topics":["languages","php","stemmer","stemmers","stemming"],"latest_commit_sha":null,"homepage":"https://github.com/nadar","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/nadar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-20T11:22:10.000Z","updated_at":"2024-06-10T08:46:18.000Z","dependencies_parsed_at":"2023-02-09T03:30:46.437Z","dependency_job_id":null,"html_url":"https://github.com/nadar/stemming","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadar%2Fstemming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadar%2Fstemming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadar%2Fstemming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nadar%2Fstemming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nadar","download_url":"https://codeload.github.com/nadar/stemming/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766793,"owners_count":21158322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["languages","php","stemmer","stemmers","stemming"],"created_at":"2024-10-15T01:11:40.614Z","updated_at":"2025-04-13T19:24:53.345Z","avatar_url":"https://github.com/nadar.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Stemming Collection\n\n![Tests](https://github.com/nadar/stemming/workflows/Tests/badge.svg)\n[![Latest Stable Version](https://poser.pugx.org/nadar/stemming/v/stable)](https://packagist.org/packages/nadar/stemming)\n[![Total Downloads](https://poser.pugx.org/nadar/stemming/downloads)](https://packagist.org/packages/nadar/stemming)\n\nThe main purpose of this repo is to unify different stemming components based on its language.\n\n## Installation\n\nThis package is distributed over the packagist service for composer. In order to use this package composer must be installed.\n\n```sh\ncomposer require nadar/stemming\n```\n\n## Usage\n\nUsing the stemmer for your desired language:\n\n```php\n\u003c?php\ninclude 'vendor/autoload.php';\n\n$stemmed = \\Nadar\\Stemming\\Stemm::stem('drinking', 'en');\n\necho $stemmed; // output: \"drink\"\n```\n\nIf your provided language could not be found, the original word will be returned.\n\nYou can also stem a whole phrase:\n\n```php\necho \\Nadar\\Stemming\\Stemm::stemPhrase('I am playing drums', 'en');\n```\n\n## Ignore\n\nCertain words are on the ignore list, valid for all languages, see Stemm::$ignore. You can adjust that list with `Stemm::$ignore = ['foo', 'bar']`.\n\n## Librarys Used:\n\n+ German Stemming: https://github.com/arisro/german-stemmer (Copyright (c) 2013 Aris Buzachis (buzachis.aris@gmail.com))\n+ English Stemming: https://tartarus.org/martin/PorterStemmer/php.txt (Copyright (c) 2005 Richard Heyes (http://www.phpguru.org/))\n\n## Testing and PR\n\nIn order to test the libray run:\n\n```php\n./vendor/bin/phpunit tests\n```\n\nin order to psr2 fix your code run:\n\n```php\n./vendor/bin/php-cs-fixer fix src/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnadar%2Fstemming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnadar%2Fstemming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnadar%2Fstemming/lists"}