{"id":16314287,"url":"https://github.com/swelcker/cmd.csp.stemmer","last_synced_at":"2025-06-12T00:05:46.164Z","repository":{"id":95054001,"uuid":"216528236","full_name":"swelcker/cmd.csp.stemmer","owner":"swelcker","description":"Simple implementation of Snowball Stemmer (http://snowballstem.org/) in Java with Stemmers for 20+ languages. Helpful to reduce tokens to their core syntax esp. when processing them in Machine Learning Models (ML). (Natural Language Processing) features.","archived":false,"fork":false,"pushed_at":"2019-10-22T07:38:19.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T17:01:27.784Z","etag":null,"topics":["nlp","nlp-library","nlp-machine-learning","nlp-parsing","stemmer","stemming-algorithm"],"latest_commit_sha":null,"homepage":"","language":"Java","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/swelcker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2019-10-21T09:23:50.000Z","updated_at":"2019-10-22T07:38:20.000Z","dependencies_parsed_at":"2023-04-28T12:02:19.763Z","dependency_job_id":null,"html_url":"https://github.com/swelcker/cmd.csp.stemmer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/swelcker/cmd.csp.stemmer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swelcker%2Fcmd.csp.stemmer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swelcker%2Fcmd.csp.stemmer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swelcker%2Fcmd.csp.stemmer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swelcker%2Fcmd.csp.stemmer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swelcker","download_url":"https://codeload.github.com/swelcker/cmd.csp.stemmer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swelcker%2Fcmd.csp.stemmer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259368021,"owners_count":22846825,"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":["nlp","nlp-library","nlp-machine-learning","nlp-parsing","stemmer","stemming-algorithm"],"created_at":"2024-10-10T21:53:37.742Z","updated_at":"2025-06-12T00:05:46.147Z","avatar_url":"https://github.com/swelcker.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![csplogo](https://user-images.githubusercontent.com/12301571/67168219-4d618900-f3a2-11e9-9460-b79eff997c35.PNG)\n# cmd.csp.stemmer\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/swelcker/cmd.csp.stemmer/graphs/commit-activity)\n[![GitHub release](https://img.shields.io/github/release/swelcker/cmd.csp.stemmer.svg)](https://GitHub.com/swelcker/cmd.csp.stemmer/releases/)\n[![GitHub tag](https://img.shields.io/github/tag/swelcker/cmd.csp.stemmer.svg)](https://GitHub.com/swelcker/cmd.csp.stemmer/tags/)\n[![GitHub commits](https://img.shields.io/github/commits-since/swelcker/cmd.csp.stemmer/master.svg)](https://GitHub.com/swelcker/cmd.csp.stemmer/commit/)\n[![GitHub contributors](https://img.shields.io/github/contributors/swelcker/cmd.csp.stemmer.svg)](https://GitHub.com/swelcker/cmd.csp.stemmer/graphs/contributors/)\n\n\nSimple implementation of Snowball Stemmer (http://snowballstem.org/) in Java with Stemmers for 20+ languages.\nHelpful to reduce tokens to their core syntax esp. when processing them in Machine Learning Models (ML).\nUsed in the Cognitive Service Platform cmd.csp as part of the NLP (Natural Language Processing) features.\n\n\n### Prerequisites\n\nThere are no prerequisites or dependencies others than java core\n\n### Installing/Usage\n\nTo use, merge the following into your Maven POM (or the equivalent into your Gradle build script):\n\n```xml\n\u003crepository\u003e\n  \u003cid\u003egithub\u003c/id\u003e\n  \u003cname\u003eGitHub swelcker Apache Maven Packages\u003c/name\u003e\n  \u003curl\u003ehttps://maven.pkg.github.com/swelcker\u003c/url\u003e\n\u003c/repository\u003e\n\n\u003cdependency\u003e\n  \u003cgroupId\u003ecmd.csp\u003c/groupId\u003e\n  \u003cartifactId\u003ecspstemmer\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThen, import cmd.csp.stemmer.*;` in your application :\n\n```java\n// Example\nimport cspstemmer.*;\n\nprivate SnowballStemmer stemmer;\nprivate Locale locale = null;\n...\n\t\tif(this.locale==null) {\n\t\t\tthis.locale = Locale.getDefault();\n\t\t}\n...\n\t\tswitch(locale.getISO3Language().toLowerCase()){\n\t\t\tcase \"ara\":stemmer=new ArabicStemmer();break;\n\t\t\tcase \"dan\":stemmer=new DanishStemmer();break;\n\t\t\tcase \"nld\":stemmer=new DutchStemmer();break;\n\t\t\tcase \"eng\":stemmer=new EnglishStemmer();break;\n\t\t\tcase \"fin\":stemmer=new FinnishStemmer();break;\n\t\t\tcase \"fra\":stemmer=new FrenchStemmer();break;\n\t\t\tcase \"deu\":stemmer=new GermanStemmer();break;\n\t\t\tcase \"hun\":stemmer=new HungarianStemmer();break;\n\t\t\tcase \"ind\":stemmer=new IndonesianStemmer();break;\n\t\t\tcase \"gle\":stemmer=new IrishStemmer();break;\n\t\t\tcase \"ita\":stemmer=new ItalianStemmer();break;\n\t\t\tcase \"nep\":stemmer=new NepaliStemmer();break;\n\t\t\tcase \"nor\":stemmer=new NorwegianStemmer();break;\n\t\t\tcase \"por\":stemmer=new PortugueseStemmer();break;\n\t\t\tcase \"ron\":stemmer=new RomanianStemmer();break;\n\t\t\tcase \"spa\":stemmer=new SpanishStemmer();break;\n\t\t\tcase \"rus\":stemmer=new RussianStemmer();break;\n\t\t\tcase \"swe\":stemmer=new SwedishStemmer();break;\n\t\t\tcase \"tam\":stemmer=new TamilStemmer();break;\n\t\t\tcase \"tur\":stemmer=new TurkishStemmer();break;\n\t\t\tdefault:stemmer=new NaiveStemmer();break;\n\t\t}\n        \n        // Then set the token to be stemmed\n        String tkn = \"Testvariable\";\n        String result = \"\";\n            stemmer.setCurrent(tkn);\n        // call to stemm\n            stemmer.stem();\n        // get/use the result\n            result = stemmer.getCurrent();\n\n...\n\n\n```\n\n## Built With\n\n* [Maven](https://maven.apache.org/) - Dependency Management\n\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/swelcker/cmd.csp.stemmer/tags). \n\n## Authors\n\n* **Stefan Welcker** - *Modifications* \n\nSee also the list of [contributors](https://github.com/swelcker/cmd.csp.stemmer/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* Forked and modified from the original with Copyright (c) 2001, Dr Martin Porter, Copyright (c) 2002, Richard Boulton. All rights reserved.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswelcker%2Fcmd.csp.stemmer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswelcker%2Fcmd.csp.stemmer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswelcker%2Fcmd.csp.stemmer/lists"}