{"id":24357044,"url":"https://github.com/scaraux/swift-porter-stemmer-2","last_synced_at":"2025-06-11T21:06:37.981Z","repository":{"id":47756555,"uuid":"153223753","full_name":"scaraux/Swift-Porter-Stemmer-2","owner":"scaraux","description":" :snowman: A Swift wrapper over the Porter Stemmer 2 / libstemmer","archived":false,"fork":false,"pushed_at":"2023-02-16T17:40:03.000Z","size":19878,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-13T20:20:23.442Z","etag":null,"topics":["porter-stemmer-algorithm","porter-stemmer-v2","snowball","stemming","swift"],"latest_commit_sha":null,"homepage":"","language":"C","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/scaraux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-10-16T04:42:31.000Z","updated_at":"2025-01-03T13:46:16.000Z","dependencies_parsed_at":"2025-04-10T04:14:58.890Z","dependency_job_id":"f908980f-2d7b-4090-abf7-4b112d00317f","html_url":"https://github.com/scaraux/Swift-Porter-Stemmer-2","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/scaraux/Swift-Porter-Stemmer-2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaraux%2FSwift-Porter-Stemmer-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaraux%2FSwift-Porter-Stemmer-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaraux%2FSwift-Porter-Stemmer-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaraux%2FSwift-Porter-Stemmer-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scaraux","download_url":"https://codeload.github.com/scaraux/Swift-Porter-Stemmer-2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scaraux%2FSwift-Porter-Stemmer-2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259340633,"owners_count":22843031,"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":["porter-stemmer-algorithm","porter-stemmer-v2","snowball","stemming","swift"],"created_at":"2025-01-18T18:55:12.173Z","updated_at":"2025-06-11T21:06:37.961Z","avatar_url":"https://github.com/scaraux.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PorterStemmer2 (Swift)\n\n\n[![CIStatus](https://img.shields.io/travis/scaraux/Swift-Porter-Stemmer-2.svg?style=flat)](https://travis-ci.org/scaraux/Swift-Porter-Stemmer-2) [![Platform](https://img.shields.io/cocoapods/p/PorterStemmer2.svg?style=flat)](https://cocoapods.org/pods/PorterStemmer2) [![Swift 4 support](https://img.shields.io/badge/Swift-4-orange.svg?style=flat)](https://cocoapods.org/pods/PorterStemmer2)\n\nA Swift wrapper over the **Porter Stemmer 2** stemming algorithm, using the official C-ANSI libstemmer library. This offers stemming with every language supported by the libstemmer library and its algorithms.\n\nFor more info regarding Porter Stemmer, visit :\n\n- http://snowball.tartarus.org/algorithms/english/stemmer.html\n- http://snowball.tartarus.org/index.html\n\n## 📦 Installation\n\nThis project is compatible with Swift 4.2, iOS/macOS.\n\n\n#### Using the Swift-Package-Manager:\n\nAdd this repo as a dependency in your *Package.swift* file.\n\n##### Example: \n\n```\nimport PackageDescription\n\nlet package = Package(\n    name: \"MyApp\",\n    dependencies: [\n\t.package(url: \"https://github.com/scaraux/Swift-Porter-Stemmer-2.git\", from: \"0.1.1\"),\n    ],\n    targets: [\n       .target(\n            name: \"MyApp\",\n            dependencies: [\"PorterStemmer2\"]),\n    ]\n)\n```\n\n#### Using CocoaPods\n\nAdd the following line to your Podfile, and run ```pod install```.\n\n```ruby\n 'PorterStemmer2'\n```\n\n## 😏 Usage\n\n```swift\nif  let stemmer = PorterStemmer(withLanguage: .English) {\n   let stem:  String  = stemmer.stem(\"engineering\")\n}\n```\n\n## :heart_eyes: Credits\n\nThe *libstemmer* library, *Snowball*, *Porter Stemmer* and *Porter Stemmer 2* are open-source libraries that have been developed by Martin Porter. For more information visit http://snowball.tartarus.org. This project is only a wrapper that makes compiling and using the Stemmer algorithm with a Swift environment.\n\n## 🚔 License\n\nSwift-Porter-Stemmer-2 is available under the MIT license. See the LICENSE file for more info.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaraux%2Fswift-porter-stemmer-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscaraux%2Fswift-porter-stemmer-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscaraux%2Fswift-porter-stemmer-2/lists"}