de.tudarmstadt.ukp.jwktl.api
Enum PartOfSpeech

java.lang.Object
  extended by java.lang.Enum<PartOfSpeech>
      extended by de.tudarmstadt.ukp.jwktl.api.PartOfSpeech
All Implemented Interfaces:
Serializable, Comparable<PartOfSpeech>

public enum PartOfSpeech
extends Enum<PartOfSpeech>

Generic representation of the parts of speech used in Wiktionary. The part of speech is defined for a certain IWiktionaryEntry.

Author:
Christian M. Meyer, Christof Müller, Lizhen Qu
See Also:
IWiktionaryEntry.getPartOfSpeech()

Enum Constant Summary
ABBREVIATION
          Abbreviation.
ACRONYM
          Acronym (pronounced as a word, e.g., "ROM", "NATO", "sonar")
ADJECTIVE
          Adjective.
ADVERB
          Adverb.
AFFIX
          Affix.
ANSWERING_PARTICLE
          Answer particle (yes, no, etc.).
ARTICLE
          Article (a, the, etc.).
AUXILIARY_VERB
          Auxiliary verb (can, might, must, etc.).
CHARACTER
          Character.
COLLOCATION
          Collocation (e.g., strong tea).
COMBINING_FORM
          Deprecated. No longer used.
COMPARATIVE_PARTICLE
          Comparative particle (She is taller _than_ me).
CONJUNCTION
          Conjunction (and, or, etc.).
CONTRACTION
          Contraction (e.g., it's).
DEMONSTRATIVE_PRONOUN
          Demonstrative pronoun (_This_ is fast).
DETERMINER
          Determiner (few, most, etc.).
EXPRESSION
          Deprecated. No longer used.
FIRST_NAME
          First/given name (e.g.
FOCUS_PARTICLE
          Focus particle (also, only, even, etc.).
GISMU
          Gismu (a root word in Lojban).
HANZI
          Chinese Hanzi character.
HIRAGANA
          Japanese Hiragana character.
IDIOM
          Idiom (e.g., rock 'n' roll).
INDEFINITE_PRONOUN
          Indefinite pronoun (_Nobody_ bought the car ).
INITIALISM
          Initialism (pronounced as letter by letter, e.g., "CD", "URL")
INTENSIFYING_PARTICLE
          Intensifying particle (very, low, etc.).
INTERJECTION
          Interjection.
INTERROGATIVE_ADVERB
          Interrogative adverb (how, when, etc.).
INTERROGATIVE_PRONOUN
          Interrogative pronoun (who, what, etc.).
KANJI
          Japanese Kanji character.
KATAKANA
          Japanese Katakana character.
LAST_NAME
          Last/family name (e.g.
LETTER
          Letter of the alphabet (A, B, C, etc.).
LEXEME
          Bound lexeme.
MEASURE_WORD
          Measure words (e.g., litre).
MNEMONIC
          Mnemonic (e.g., "My Very Educated Mother Just Served Us Nachos" for planet names).
MODAL_PARTICLE
          Modal particle (express attitude, e.g., German: Sprich _doch mal_ mit ihr ).
NEGATIVE_PARTICLE
          Negative particle (neither...nor, etc.).
NOUN
          Noun.
NOUN_PHRASE
          Deprecated. No longer used.
NUMBER
          Number and numeral (e.g., two, fifteen, etc.).
NUMERAL
          Number and numeral (e.g., two, fifteen, etc.).
ONOMATOPOEIA
          Onomatopoeia (e.g., peng, tic-tac).
PARTICIPLE
          Participle.
PARTICLE
          Particle.
PERSONAL_PRONOUN
          (Irreflexive) personal pronoun (I, you, he, she, we, etc.).
PHRASE
          Phrase.
PLACE_NAME_ENDING
          Place name suffix (e.g., -burg).
PLURALE_TANTUM
          Only takes the plural form.
POSSESSIVE_PRONOUN
          Possessive pronoun (mine, your, our, etc.).
POSTPOSITION
          Postposition (e.g., ago).
PREFIX
          Prefix.
PREPOSITION
          Preposition (e.g., underneath).
PRONOUN
          Pronoun.
PROPER_NOUN
          Proper noun (names, locations, organizations)
PROVERB
          Proverb (e.g., that's the way life is).
PUNCTUATION_MARK
          Punctuation mark (., ?
REFLEXIVE_PRONOUN
          Reflexive personal pronoun (myself, herself, ourselves, etc.).
RELATIVE_PRONOUN
          Relative pronoun (She sold the car, _which_ was very old ).
SALUTATION
          Salutation (e.g., good afternoon).
SINGULARE_TANTUM
          Only takes the singular form.
SUBORDINATOR
          Subordinating conjunction (as soon as, after, etc.).
SUFFIX
          Suffix.
SYMBOL
          Symbol (+, §, $, etc.).
TOPONYM
          Toponym (i.e., a place name).
TRANSLITERATION
          Transliterated word form.
VERB
          Verb.
WORD_FORM
          Inflected word form.
 
Field Summary
protected static Set<String> unknownPos
           
 
Method Summary
static boolean equals(PartOfSpeech partOfSpeech1, PartOfSpeech partOfSpeech2)
          Tests if the specified parts of speech are equal.
static PartOfSpeech findByName(String name)
          Find the part of speech with the given name.
static PartOfSpeech findByName(String name, Map<String,PartOfSpeech> additionalMap)
          Find the part of speech with the given name.
static PartOfSpeech valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PartOfSpeech[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOUN

public static final PartOfSpeech NOUN
Noun.


PROPER_NOUN

public static final PartOfSpeech PROPER_NOUN
Proper noun (names, locations, organizations)


FIRST_NAME

public static final PartOfSpeech FIRST_NAME
First/given name (e.g. Nadine).


LAST_NAME

public static final PartOfSpeech LAST_NAME
Last/family name (e.g. Miller).


TOPONYM

public static final PartOfSpeech TOPONYM
Toponym (i.e., a place name).


SINGULARE_TANTUM

public static final PartOfSpeech SINGULARE_TANTUM
Only takes the singular form.


PLURALE_TANTUM

public static final PartOfSpeech PLURALE_TANTUM
Only takes the plural form.


MEASURE_WORD

public static final PartOfSpeech MEASURE_WORD
Measure words (e.g., litre).


VERB

public static final PartOfSpeech VERB
Verb.


AUXILIARY_VERB

public static final PartOfSpeech AUXILIARY_VERB
Auxiliary verb (can, might, must, etc.).


ADJECTIVE

public static final PartOfSpeech ADJECTIVE
Adjective.


ADVERB

public static final PartOfSpeech ADVERB
Adverb.


INTERJECTION

public static final PartOfSpeech INTERJECTION
Interjection.


SALUTATION

public static final PartOfSpeech SALUTATION
Salutation (e.g., good afternoon).


ONOMATOPOEIA

public static final PartOfSpeech ONOMATOPOEIA
Onomatopoeia (e.g., peng, tic-tac).


PHRASE

public static final PartOfSpeech PHRASE
Phrase.


IDIOM

public static final PartOfSpeech IDIOM
Idiom (e.g., rock 'n' roll).


COLLOCATION

public static final PartOfSpeech COLLOCATION
Collocation (e.g., strong tea).


PROVERB

public static final PartOfSpeech PROVERB
Proverb (e.g., that's the way life is).


MNEMONIC

public static final PartOfSpeech MNEMONIC
Mnemonic (e.g., "My Very Educated Mother Just Served Us Nachos" for planet names).


PRONOUN

public static final PartOfSpeech PRONOUN
Pronoun.


PERSONAL_PRONOUN

public static final PartOfSpeech PERSONAL_PRONOUN
(Irreflexive) personal pronoun (I, you, he, she, we, etc.).


REFLEXIVE_PRONOUN

public static final PartOfSpeech REFLEXIVE_PRONOUN
Reflexive personal pronoun (myself, herself, ourselves, etc.).


POSSESSIVE_PRONOUN

public static final PartOfSpeech POSSESSIVE_PRONOUN
Possessive pronoun (mine, your, our, etc.).


DEMONSTRATIVE_PRONOUN

public static final PartOfSpeech DEMONSTRATIVE_PRONOUN
Demonstrative pronoun (_This_ is fast).


RELATIVE_PRONOUN

public static final PartOfSpeech RELATIVE_PRONOUN
Relative pronoun (She sold the car, _which_ was very old ).


INDEFINITE_PRONOUN

public static final PartOfSpeech INDEFINITE_PRONOUN
Indefinite pronoun (_Nobody_ bought the car ).


INTERROGATIVE_PRONOUN

public static final PartOfSpeech INTERROGATIVE_PRONOUN
Interrogative pronoun (who, what, etc.).


INTERROGATIVE_ADVERB

public static final PartOfSpeech INTERROGATIVE_ADVERB
Interrogative adverb (how, when, etc.).


PARTICLE

public static final PartOfSpeech PARTICLE
Particle.


ANSWERING_PARTICLE

public static final PartOfSpeech ANSWERING_PARTICLE
Answer particle (yes, no, etc.).


NEGATIVE_PARTICLE

public static final PartOfSpeech NEGATIVE_PARTICLE
Negative particle (neither...nor, etc.).


COMPARATIVE_PARTICLE

public static final PartOfSpeech COMPARATIVE_PARTICLE
Comparative particle (She is taller _than_ me).


FOCUS_PARTICLE

public static final PartOfSpeech FOCUS_PARTICLE
Focus particle (also, only, even, etc.).


INTENSIFYING_PARTICLE

public static final PartOfSpeech INTENSIFYING_PARTICLE
Intensifying particle (very, low, etc.).


MODAL_PARTICLE

public static final PartOfSpeech MODAL_PARTICLE
Modal particle (express attitude, e.g., German: Sprich _doch mal_ mit ihr ).


ARTICLE

public static final PartOfSpeech ARTICLE
Article (a, the, etc.).


DETERMINER

public static final PartOfSpeech DETERMINER
Determiner (few, most, etc.).


ABBREVIATION

public static final PartOfSpeech ABBREVIATION
Abbreviation.


ACRONYM

public static final PartOfSpeech ACRONYM
Acronym (pronounced as a word, e.g., "ROM", "NATO", "sonar")


INITIALISM

public static final PartOfSpeech INITIALISM
Initialism (pronounced as letter by letter, e.g., "CD", "URL")


CONTRACTION

public static final PartOfSpeech CONTRACTION
Contraction (e.g., it's).


CONJUNCTION

public static final PartOfSpeech CONJUNCTION
Conjunction (and, or, etc.).


SUBORDINATOR

public static final PartOfSpeech SUBORDINATOR
Subordinating conjunction (as soon as, after, etc.).


PREPOSITION

public static final PartOfSpeech PREPOSITION
Preposition (e.g., underneath).


POSTPOSITION

public static final PartOfSpeech POSTPOSITION
Postposition (e.g., ago).


AFFIX

public static final PartOfSpeech AFFIX
Affix.


PREFIX

public static final PartOfSpeech PREFIX
Prefix.


SUFFIX

public static final PartOfSpeech SUFFIX
Suffix.


PLACE_NAME_ENDING

public static final PartOfSpeech PLACE_NAME_ENDING
Place name suffix (e.g., -burg).


LEXEME

public static final PartOfSpeech LEXEME
Bound lexeme.


CHARACTER

public static final PartOfSpeech CHARACTER
Character.


LETTER

public static final PartOfSpeech LETTER
Letter of the alphabet (A, B, C, etc.).


NUMBER

public static final PartOfSpeech NUMBER
Number and numeral (e.g., two, fifteen, etc.).


NUMERAL

public static final PartOfSpeech NUMERAL
Number and numeral (e.g., two, fifteen, etc.).


PUNCTUATION_MARK

public static final PartOfSpeech PUNCTUATION_MARK
Punctuation mark (., ?, ;, etc.).


SYMBOL

public static final PartOfSpeech SYMBOL
Symbol (+, §, $, etc.).


HANZI

public static final PartOfSpeech HANZI
Chinese Hanzi character.


KANJI

public static final PartOfSpeech KANJI
Japanese Kanji character.


KATAKANA

public static final PartOfSpeech KATAKANA
Japanese Katakana character.


HIRAGANA

public static final PartOfSpeech HIRAGANA
Japanese Hiragana character.


GISMU

public static final PartOfSpeech GISMU
Gismu (a root word in Lojban).


WORD_FORM

public static final PartOfSpeech WORD_FORM
Inflected word form.


PARTICIPLE

public static final PartOfSpeech PARTICIPLE
Participle.


TRANSLITERATION

public static final PartOfSpeech TRANSLITERATION
Transliterated word form.


COMBINING_FORM

@Deprecated
public static final PartOfSpeech COMBINING_FORM
Deprecated. No longer used.

EXPRESSION

@Deprecated
public static final PartOfSpeech EXPRESSION
Deprecated. No longer used.

NOUN_PHRASE

@Deprecated
public static final PartOfSpeech NOUN_PHRASE
Deprecated. No longer used.
Field Detail

unknownPos

protected static Set<String> unknownPos
Method Detail

values

public static PartOfSpeech[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PartOfSpeech c : PartOfSpeech.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PartOfSpeech valueOf(String name)
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 name
NullPointerException - if the argument is null

findByName

public static PartOfSpeech findByName(String name)
Find the part of speech with the given name. The method only for its canonical English name. Use findByName(String, Map) for language-specific lookup. If no part of speech could be found, null is returned.


findByName

public static PartOfSpeech findByName(String name,
                                      Map<String,PartOfSpeech> additionalMap)
Find the part of speech with the given name. The method checks both for the canonical English name as well as alternative names in other languages, which can be specified by passing a custom additional map. If no part of speech could be found, null is returned.


equals

public static boolean equals(PartOfSpeech partOfSpeech1,
                             PartOfSpeech partOfSpeech2)
Tests if the specified parts of speech are equal. The method returns true if both parts of speech are null, but false if only one of them is null.



Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.