2 USING: help.markup help.syntax ;
5 { $values { "str" "a string" } { "newstr" "a new string" } }
6 { $description "Gets rid of plurals." }
10 { "caresses" "caress" }
19 { $values { "str" "a string" } { "newstr" "a new string" } }
20 { $description "Gets rid of \"-ed\" and \"-ing\" suffixes." }
23 { "Input:" "Output:" }
26 { "disabled" "disable" }
37 { $values { "str" "a string" } { "newstr" "a new string" } }
38 { $description "Turns a terminal y to i when there is another vowel in the stem." } ;
41 { $values { "str" "a string" } { "newstr" "a new string" } }
42 { $description "Maps double suffices to single ones. so -ization maps to -ize etc. note that the string before the suffix must give positive " { $link consonant-seq } "." } ;
45 { $values { "str" "a string" } { "newstr" "a new string" } }
46 { $description "Deals with -c-, -full, -ness, etc. Similar strategy to " { $link step2 } "." } ;
49 { $values { "str" "a string" } { "newstr" "a new string" } }
50 { $description "Removes a final -e and changes a final -ll to -l if " { $link consonant-seq } " is greater than 1," } ;
53 { $values { "str" "a string" } { "newstr" "a new string" } }
54 { $description "Applies the Porter stemming algorithm to the input string." } ;
56 ARTICLE: "porter-stemmer" "Porter stemming algorithm"
57 "The help system uses the Porter stemming algorithm to normalize words when building the full-text search index."
59 "The Factor implementation of the algorithm is based on the Common Lisp version, which was hand-translated from ANSI C by Steven M. Haflich. The original ANSI C was written by Martin Porter."
61 "A detailed description of the algorithm, along with implementations in various languages, can be at in " { $url "http://www.tartarus.org/~martin/PorterStemmer" } "."
63 "The main word of the algorithm takes an English word as input and outputs its stem:"
65 "The algorithm consists of a number of steps:"
66 { $subsection step1a }
67 { $subsection step1b }
68 { $subsection step1c }
72 { $subsection step5 } ;
74 ABOUT: "porter-stemmer"