LanguageTools Word Formation Analyzer/Generator:
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. After each single citation form there are one or more combinations of features.

Example for the Analyzer

query   -> kennenlernen
result  -> kennen
             (Cat V)(Aux haben)
           lernen
             (Cat V)(Aux haben)


query   -> gemocht
result  -> mögen
             (Cat V)(Aux haben)

Example for the Generator

query   -> mahnen
result  -> abmahnen
             (Cat V)(Aux haben)
           anmahnen
             (Cat V)(Aux haben)
           einmahnen
             (Cat V)(Aux haben)
           ermahnen
             (Cat V)(Aux haben)
           gemahnen
             (Cat V)(Aux haben)
           gemahnt
             (Cat A)(Lexeme mahnen)
           mahnbescheid
             (Cat N)(Gender M)
           mahnbrief
             (Cat N)(Gender M)
           mahnend
             (Cat A)
           mahner
             (Cat N)(Gender M)
           mahngebühr
             (Cat N)(Gender F)
           mahnmal
             (Cat N)(Gender N)(Plural e),
             (Cat N)(Gender N)(Plural er)
           mahnruf
             (Cat N)(Gender M)
           mahnschreiben
             (Cat N)(Gender N)
           mahnstätte
             (Cat N)(Gender F)
           mahnung
             (Cat N)(Gender F)
           mahnverfahren
             (Cat N)(Gender N)
           mahnwache
             (Cat N)(Gender F)
           mahnwort
             (Cat N)(Gender N)
           mahnzeichen
             (Cat N)(Gender N)
           mahnzettel
             (Cat N)(Gender M)
           vermahnen
             (Cat V)(Aux haben)

Feature Elements

Attribute Meaning
AForm "Adjective Form"
Abbr "Type"
Acron "Type"
Article "Article"
Aux "Auxiliary"
Case "Case"
Cat "Category"
Conjug "Conjugation"
Decl "Inflection"
Degree "Degree"
Derivation "Derived from"
Form "Form"
Gender "Gender"
Genitiv "Genitive"
Language "Language"
Lexem "Lexem"
Lexeme "in the sense of"
Manner "Type"
Meaning "Meaning"
Mod "Mood"
Name "Name"
Num "Number"
Pers "Person"
Plur "Plural"
Plural "Plural"
Position "Position"
Pref "Prefix"
Prefix "Prefix"
Prep+Art "Preposition + Article"
Short "Shortening of"
Sing "Singular"
Temp "Tense"
Var "Variant"

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