Latest 0.1.0
Homepage https://github.com/scaraux/Swift-Porter-Stemmer-2
License MIT
Platforms ios 9.0, osx 10.10
Authors

PorterStemmer2 (Swift)

CIStatus
Platform
Swift 4 support

A 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.

For more info, visit :

📦 Installation

This project is compatible with macOS, iOS 9 and Swift 4.2.

Swift-PorterStemmer2 is available through CocoaPods

To install it, simply add the following line to your Podfile:


pod 'PorterStemmer2'

😏 Usage


import PorterStemmer2

if let stemmer = PorterStemmer(withLanguage: .English) {

let stem: String = stemmer.stem("engineering")

}

:heart_eyes: Credits

The 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.

🚔 License

Swift-Porter-Stemmer-2 is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PorterStemmer2",
    "version": "0.1.0",
    "swift_version": "4.2",
    "summary": "A Swift wrapper over the Porter Stemmer 2 library",
    "description": "A Swift wrapper over the Porter Stemmer 2 stemming library, from the official C-ANSInlibstemmer library. This offers stemming with every language supported by thenlibstemmer library and its algorithms.",
    "homepage": "https://github.com/scaraux/Swift-Porter-Stemmer-2",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Oscar Gotting": "[email protected]"
    },
    "source": {
        "git": "https://github.com/scaraux/Swift-Porter-Stemmer-2.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0",
        "osx": "10.10"
    },
    "source_files": "PorterStemmer2/Classes/**/*"
}

Pin It on Pinterest

Share This