LanguageTools Lemmatizer:
Output Syntax Description

Java-Based Results

The Java API provides a convenient way to get and manage the results of a query. Have a look at the IAnswer interface javadoc to read more information on how to use it within your code

All Java API answers can be transformed to string-based answers, using methods of the class APIConversions

String-Based Results

If there is no result the API function returns null.

If the API function returns a single string, the character '#' signals the end of the result (used for C/C++ answers). If the API function returns an array of strings (Java implementation), the character '#' is not part of the result.

Result format:

result       ::=  {citation EOL feature-set 
                  {"," EOL feature-set}} EOL.
feature-set  ::=  {feature-pair}.
feature-pair ::=  "(" attribute value ")".
citation     ::=  string.
attribute    ::=  string.
value        ::=  string.

The result of a query consists of a sequence of citation forms. Each single citation form is followed by one or more combinations of features.

The lemmatizer only considers "Cat" and "Flach" features.

Here is the output of the integration test programs:

query   -> ging
result  -> gehen
             (Cat V)

query   -> moegen 
result  -> mögen
              (Cat V)(Flach ouml),
              (Cat N)(Flach ouml)

query   -> moegen   Filter: (Cat N)
result  -> mögen
              (Cat N)(Flach ouml)

Feature Elements

The main feature attribute of a lemmatizer is "Cat", which refers to the word category. Other attributes are language-specific.

Common Attributes

Attribute Values Meaning
Cat N Noun
  A Adjective
  V Verb
  Art Article
  Pron Pronoun
  Adv Adverb
  Prep Preposition
  Conjunct Conjunction
  Interj Interjection
  Number Number
  NCF Neoclassical form
  Letter Letter

Please note that there are some language-specific features that need to be considered.