A Swift implementation of the Snowball stemmer
For more info on algorithm:
Currently English is the only supported language, there are plans for more. Help is always appreciated!
.package(url: "https://github.com/ptrejo1/SwiftSnowball.git", .exact("1.0.0"))
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