{"id":22607862,"url":"https://github.com/patch/lingua-stem-patch-pm5","last_synced_at":"2025-09-12T06:33:28.194Z","repository":{"id":17660965,"uuid":"20465580","full_name":"patch/lingua-stem-patch-pm5","owner":"patch","description":"Lingua::Stem::Patch (Perl 5): Patch stemmers for Esperanto, Ido, and Polish","archived":false,"fork":false,"pushed_at":"2015-02-13T23:48:51.000Z","size":1052,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T08:48:04.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/Lingua::Stem::Patch","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patch.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-04T01:11:39.000Z","updated_at":"2016-05-10T17:35:45.000Z","dependencies_parsed_at":"2022-09-09T17:11:33.689Z","dependency_job_id":null,"html_url":"https://github.com/patch/lingua-stem-patch-pm5","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patch%2Flingua-stem-patch-pm5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patch%2Flingua-stem-patch-pm5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patch%2Flingua-stem-patch-pm5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patch%2Flingua-stem-patch-pm5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patch","download_url":"https://codeload.github.com/patch/lingua-stem-patch-pm5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106708,"owners_count":20724401,"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":[],"created_at":"2024-12-08T14:22:35.372Z","updated_at":"2025-03-28T22:20:01.014Z","avatar_url":"https://github.com/patch.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://travis-ci.org/patch/lingua-stem-patch-pm5.png)](https://travis-ci.org/patch/lingua-stem-patch-pm5)\n[![Coverage status](https://coveralls.io/repos/patch/lingua-stem-patch-pm5/badge.png)](https://coveralls.io/r/patch/lingua-stem-patch-pm5)\n[![CPAN version](https://badge.fury.io/pl/Lingua-Stem-Patch.png)](http://badge.fury.io/pl/Lingua-Stem-Patch)\n\n# NAME\n\nLingua::Stem::Patch - Patch stemmers for Esperanto and Ido\n\n# VERSION\n\nThis document describes Lingua::Stem::Patch v0.06.\n\n# SYNOPSIS\n\n```perl\nuse Lingua::Stem::Patch;\n\n# create Esperanto stemmer\n$stemmer = Lingua::Stem::Patch-\u003enew(language =\u003e 'eo');\n\n# get stem for word\n$stem = $stemmer-\u003estem($word);\n\n# get list of stems for list of words\n@stems = $stemmer-\u003estem(@words);\n```\n\n# DESCRIPTION\n\nThis module contains a collection of stemmers for multiple languages using the\nPatch stemming algorithms. The languages currently implemented are\n[Esperanto](https://metacpan.org/pod/Lingua::Stem::Patch::EO), [Ido](https://metacpan.org/pod/Lingua::Stem::Patch::IO), and\n[Polish](https://metacpan.org/pod/Lingua::Stem::Patch::PL).\n\nThis is a new project under active development and the current stemming\nalgorithms are likely to change.\n\n## Attributes\n\n- language\n\n    The following language codes are currently supported.\n\n        ┌───────────┬────┐\n        │ Esperanto │ eo │\n        │ Ido       │ io │\n        │ Polish    │ pl │\n        └───────────┴────┘\n\n    They are in the two-letter ISO 639-1 format and are case-insensitive but are\n    always returned in lowercase when requested.\n\n    ```perl\n    # instantiate a stemmer object\n    $stemmer = Lingua::Stem::Patch-\u003enew(language =\u003e $language);\n\n    # get current language\n    $language = $stemmer-\u003elanguage;\n\n    # change language\n    $stemmer-\u003elanguage($language);\n    ```\n\n- aggressive\n\n    By default a light stemmer will be used, but when `aggressive` is set to true,\n    an aggressive stemmer will be used instead.\n\n    ```perl\n    $stemmer-\u003eaggressive(1);\n    ```\n\n## Methods\n\n- stem\n\n    Accepts a list of words, stems each word, and returns a list of stems. The list\n    returned will always have the same number of elements in the same order as the\n    list provided. When no stemming rules apply to a word, the original word is\n    returned.\n\n    ```perl\n    @stems = $stemmer-\u003estem(@words);\n\n    # get the stem for a single word\n    $stem = $stemmer-\u003estem($word);\n    ```\n\n    The words should be provided as character strings and the stems are returned as\n    character strings. Byte strings in arbitrary character encodings are\n    intentionally not supported.\n\n- languages\n\n    Returns a list of supported two-letter language codes using lowercase letters.\n\n    ```perl\n    # object method\n    @languages = $stemmer-\u003elanguages;\n\n    # class method\n    @languages = Lingua::Stem::Patch-\u003elanguages;\n    ```\n\n# SEE ALSO\n\n[Lingua::Stem::Any](https://metacpan.org/pod/Lingua::Stem::Any) provides a unified interface to any stemmer on CPAN,\nincluding this module, as well as additional features like normalization,\ncasefolding, and in-place stemming.\n\n# AUTHOR\n\nNick Patch \u003cpatch@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\n© 2014–2015 Nick Patch\n\nThis library is free software; you can redistribute it and/or modify it under\nthe same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatch%2Flingua-stem-patch-pm5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatch%2Flingua-stem-patch-pm5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatch%2Flingua-stem-patch-pm5/lists"}