Cadmium::PorterStemmer
Inherits Cadmium::Stemmer / Cadmium::Util::StopWords / Reference / Object
Class methods
attempt_replace(token : String, pattern : String | Regex, replacement : String)
Attempt to replace a pattern in a word. if a replacement occurs the replacement is returned. Otherwise nil is returned.
attempt_replace(token : String, pattern : String | Regex, replacement : String, &)
Attempt to replae a pattern in a word. If a replacement occurs the replacement is yielded to a block. Otherwise nil is returned
attempt_replace_patterns(token, replacements, measure_threshold = nil)
Attempt to replace a list of patterns/replacements on a token for a minimum measure M
categorize_chars(token : String)
Sourcecategorize_groups(token : String)
Sourceends_with_double_cons(token : String)
Sourcemeasure(token : String | Nil)
Sourcereplace_patterns(token, replacements, measure_threshold = nil)
Sourcereplace_regex(token, regex, include_parts, minimum_measure)
Sourcestem(token : String)
Sourcestep1a(token : String)
Sourcestep1b(token : String)
Sourcestep1c(token : String)
Sourcestep2(token : String)
Sourcestep3(token : String)
Sourcestep4(token : String)
Sourcestep5a(token : String)
Sourcestep5b(token : String)
Source