Class POS
java.lang.Object
net.didion.jwnl.data.POS
- All Implemented Interfaces:
Serializable
Instances of this class enumerate the possible major syntactic categories, or
Part's Of Speech. Each
POS has a human-readable
label that can be used to print it, and a key by which it can be looked up.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanAn instance of POS is equal to another iff they're underlying keys are equal.static ListgetKey()Gets the key for this POS.getLabel()Return a label intended for textual presentation.static POSgetPOSForKey(String key) Return thePOSwhose key matches key, or null if the key does not match any POS.static POSgetPOSForLabel(String label) Return thePOSwhose key matches label, or null if the label does not match any POS.inthashCode()Returns the underlying pos key's hashcode.toString()
-
Field Details
-
NOUN
-
VERB
-
ADJECTIVE
-
ADVERB
-
-
Method Details
-
getAllPOS
-
getPOSForLabel
-
getPOSForKey
-
toString
-
hashCode
-
equals
-
getLabel
Return a label intended for textual presentation. -
getKey
-