public class PluralFoldingFilter
extends TokenFilter
| Modifier and Type | Field and Description |
|---|---|
private WordMap |
pluralMap
Set of words to de-pluralize
|
| Constructor and Description |
|---|
PluralFoldingFilter(TokenStream input,
WordMap pluralMap)
Construct a token stream to convert plural words to singular.
|
| Modifier and Type | Method and Description |
|---|---|
Token |
next()
Retrieve the next token in the stream.
|
private WordMap pluralMap
public PluralFoldingFilter(TokenStream input,
WordMap pluralMap)
input - Input stream of tokens to processpluralMap - Mapping of plural words to their singular equivalents.