Package org.egothor.stemmer
Enum Class DiacriticProcessingMode
- All Implemented Interfaces:
Serializable,Comparable<DiacriticProcessingMode>,Constable
Defines how dictionary loading and trie traversal should treat diacritics.
The selected mode is applied independently from other normalization modes
(for example CaseProcessingMode). This means case normalization and
diacritic normalization can be combined freely and each keeps its own
semantics.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPreserves dictionary entries and lookup keys exactly as provided.Planned dual-path mode where lookup may continue along both the original diacritic edge and a normalized non-diacritic alternative.Removes diacritics from dictionary entries before trie construction and removes diacritics from lookup keys before traversal. -
Method Summary
Modifier and TypeMethodDescriptionstatic DiacriticProcessingModeReturns the enum constant of this class with the specified name.static DiacriticProcessingMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AS_IS
Preserves dictionary entries and lookup keys exactly as provided. -
REMOVE
Removes diacritics from dictionary entries before trie construction and removes diacritics from lookup keys before traversal. -
AS_IS_AND_STRIPPED_FALLBACK
Planned dual-path mode where lookup may continue along both the original diacritic edge and a normalized non-diacritic alternative.This mode is currently not supported and using it triggers
UnsupportedOperationException.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-