class

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.

Source
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

Source
attempt_replace_patterns(token, replacements, measure_threshold = nil)

Attempt to replace a list of patterns/replacements on a token for a minimum measure M

Source
categorize_chars(token : String)
Source
categorize_groups(token : String)
Source
ends_with_double_cons(token : String)
Source
measure(token : String | Nil)
Source
replace_patterns(token, replacements, measure_threshold = nil)
Source
replace_regex(token, regex, include_parts, minimum_measure)
Source
stem(token : String)
Source
step1a(token : String)
Source
step1b(token : String)
Source
step1c(token : String)
Source
step2(token : String)
Source
step3(token : String)
Source
step4(token : String)
Source
step5a(token : String)
Source
step5b(token : String)
Source