Class: Treat::Workers::Inflectors::Stemmers::PorterC
- Inherits:
-
Object
- Object
- Treat::Workers::Inflectors::Stemmers::PorterC
- Defined in:
- lib/treat/workers/inflectors/stemmers/porter_c.rb
Overview
Stemming using a wrapper for a C implementation of the Porter stemming algorithm, a rule-based suffix-stripping stemmer which is very widely used and is considered the de-facto standard algorithm used for English stemming.
Original paper: Porter, 1980. An algorithm for suffix stripping. Program, vol. 14, no. 3, p. 130-137.
Class Method Summary collapse
-
.stem(word, options = {}) ⇒ Object
Stem the word using a full-blown Porter stemmer in C.
Class Method Details
.stem(word, options = {}) ⇒ Object
Stem the word using a full-blown Porter stemmer in C.
Options: none.
20 21 22 |
# File 'lib/treat/workers/inflectors/stemmers/porter_c.rb', line 20 def self.stem(word, = {}) ::LinguaStemmer.stemmer(word.to_s) end |