Package morfologik.stemming
Enum DictionaryAttribute
- All Implemented Interfaces:
Serializable
,Comparable<DictionaryAttribute>
Attributes applying to
Dictionary
and DictionaryMetadata
.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDictionary author.if the spelling dictionary is supposed to treat upper and lower case as equivalent.Dictionary creation date.Locale associated with the dictionary.Character to byte encoding used for strings inside the FSA.Equivalent characters (treated similarly as equivalent chars with and without diacritics).If the FSA dictionary includes frequency data.If the spelling dictionary is supposed to ignore ALL UPPERCASE words.If the spelling dictionary is supposed to ignore CamelCase words.If the spelling dictionary is supposed to ignore diacritics, so that 'a' would be treated as equivalent to 'ą'.If the spelling dictionary is supposed to ignore words containing digitsIf the spelling dictionary is supposed to ignore punctuation.Input conversion pairs to replace non-standard characters before search in a speller dictionary.Dictionary license attribute.Locale associated with the dictionary.Output conversion pairs to replace non-standard characters before search in a speller dictionary.Replacement pairs for non-obvious candidate search in a speller dictionary.If the spelling dictionary is supposed to split runOnWords.Logical fields separator inside the FSA. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<String,
DictionaryAttribute> final String
Property name for this attribute. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DictionaryAttribute
(String propertyName) Private enum instance constructor. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Boolean
booleanValue
(String value) static DictionaryAttribute
fromPropertyName
(String propertyName) fromString
(String value) Converts a string to the given attribute's value.static DictionaryAttribute
Returns the enum constant of this type with the specified name.static DictionaryAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SEPARATOR
Logical fields separator inside the FSA. -
ENCODING
Character to byte encoding used for strings inside the FSA. -
FREQUENCY_INCLUDED
If the FSA dictionary includes frequency data. -
IGNORE_NUMBERS
If the spelling dictionary is supposed to ignore words containing digits -
IGNORE_PUNCTUATION
If the spelling dictionary is supposed to ignore punctuation. -
IGNORE_CAMEL_CASE
If the spelling dictionary is supposed to ignore CamelCase words. -
IGNORE_ALL_UPPERCASE
If the spelling dictionary is supposed to ignore ALL UPPERCASE words. -
IGNORE_DIACRITICS
If the spelling dictionary is supposed to ignore diacritics, so that 'a' would be treated as equivalent to 'ą'. -
CONVERT_CASE
if the spelling dictionary is supposed to treat upper and lower case as equivalent. -
RUN_ON_WORDS
If the spelling dictionary is supposed to split runOnWords. -
LOCALE
Locale associated with the dictionary. -
ENCODER
Locale associated with the dictionary. -
INPUT_CONVERSION
Input conversion pairs to replace non-standard characters before search in a speller dictionary. For example, common ligatures can be replaced here. -
OUTPUT_CONVERSION
Output conversion pairs to replace non-standard characters before search in a speller dictionary. For example, standard characters can be replaced here into ligatures. Useful for dictionaries that do have certain standards imposed. -
REPLACEMENT_PAIRS
Replacement pairs for non-obvious candidate search in a speller dictionary. For example, Polish rz is phonetically equivalent to ż, and this may be specified here to allow looking for replacements of rz with ż and vice versa. -
EQUIVALENT_CHARS
Equivalent characters (treated similarly as equivalent chars with and without diacritics). For example, Polish ł can be specified as equivalent to l.This implements a feature similar to hunspell MAP in the affix file.
-
LICENSE
Dictionary license attribute. -
AUTHOR
Dictionary author. -
CREATION_DATE
Dictionary creation date.
-
-
Field Details
-
propertyName
Property name for this attribute. -
attrsByPropertyName
-
-
Constructor Details
-
DictionaryAttribute
Private enum instance constructor.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromString
Converts a string to the given attribute's value.- Parameters:
value
- The value to convert to an attribute value.- Returns:
- Returns the attribute's value converted from a string.
- Throws:
IllegalArgumentException
- If the input string cannot be converted to the attribute's value.
-
fromPropertyName
- Parameters:
propertyName
- The property of aDictionaryAttribute
.- Returns:
- Return a
DictionaryAttribute
associated with a givenpropertyName
.
-
booleanValue
-