Swiftpack.co - Package - ptrejo1/SwiftSnowball

SwiftSnowball

Swift 5.0 License MIT CircleCI codecov

A Swift implementation of the Snowball stemmer

For more info on algorithm:

  • http://snowball.tartarus.org/
  • http://snowball.tartarus.org/algorithms/english/stemmer.html

Currently English is the only supported language, there are plans for more. Help is always appreciated!

Installation

Swift Package Manager

.package(url: "https://github.com/ptrejo1/SwiftSnowball.git", .exact("1.0.0"))

Usage

Stem a word with the SnowballStemmer class and its stem method

import SwiftSnowball

let stemmer = SnowballStemmer(language: .english)
let stemmed = stemmer.stem("swiftly")
print(stemmed)      // prints swift

Github

link
Stars: 0

Dependencies

Used By

Total: 0

Releases

1.0.0 - 2020-09-11 06:21:09

First Public Release

0.1.1 - 2020-09-08 08:35:34

Pre-release