LanguageTools Inflection 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 feature-set EOL 
                  {"," 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.

Example for the Analyzer

query   -> ging
result  -> gehen
             (Cat V)(Aux sein)(Mod Ind)(Temp Impf)(Pers 1st)
               (Num SG)(ID 0-1),
             (Cat V)(Aux sein)(Mod Ind)(Temp Impf)(Pers 3rd)
               (Num SG)(ID 0-1)


query   -> moegen 
result  -> mögen
              (Cat V)(Aux haben)(Mod Inf)(Temp Pres)
                (Flach ouml)(ID 0-1),
              (Cat V)(Aux haben)(Mod Ind)(Temp Pres)(Pers 1st)
                (Num PL)(Flach ouml)(ID 0-1),
              (Cat V)(Aux haben)(Mod Ind)(Temp Pres)(Pers 3rd)
                (Num PL)(Flach ouml)(ID 0-1),
              (Cat V)(Aux haben)(Mod Conj-1)(Temp Pres)(Pers 1st)
                (Num PL)(Flach ouml)(ID 0-1),
              (Cat V)(Aux haben)(Mod Conj-1)(Temp Pres)(Pers 3rd)
                (Num PL)(Flach ouml)(ID 0-1),
              (Cat N)(Gender N)(Num SG)(Case Nom)(ID 0-1)
                (Flach ouml),
              (Cat N)(Gender N)(Num SG)(Case Acc)(ID 0-1)
                (Flach ouml),
              (Cat N)(Gender N)(Num SG)(Case Dat)(ID 0-1)
                (Flach ouml)

query   -> moegen   Filter: (Cat N)
result  -> mögen
              (Cat N)(Gender N)(Num SG)(Case Nom)(ID 0-1)
                (Flach ouml),
              (Cat N)(Gender N)(Num SG)(Case Acc)(ID 0-1)
                (Flach ouml),
              (Cat N)(Gender N)(Num SG)(Case Dat)(ID 0-1)
                (Flach ouml)

Example for the Generator

query   -> haus
result  -> häuser
             (Cat N)(Gender N)(Num PL)(Case Nom)(ID 0-1),
             (Cat N)(Gender N)(Num PL)(Case Gen)(ID 0-1),
             (Cat N)(Gender N)(Num PL)(Case Acc)(ID 0-1)
           häusern
             (Cat N)(Gender N)(Num PL)(Case Dat)(ID 0-1)
           haeuser
             (Cat N)(Gender N)(Num PL)(Case Nom)(Flach auml)
              (ID 0-1),
             (Cat N)(Gender N)(Num PL)(Case Gen)(Flach auml)
               (ID 0-1),
             (Cat N)(Gender N)(Num PL)(Case Acc)(Flach auml)
               (ID 0-1)
           haeusern
             (Cat N)(Gender N)(Num PL)(Case Dat)(Flach auml)
               (ID 0-1)
           haus
             (Cat N)(Gender N)(Num SG)(Case Nom)(ID 0-1),
             (Cat N)(Gender N)(Num SG)(Case Dat)(ID 0-1),
             (Cat N)(Gender N)(Num SG)(Case Acc)(ID 0-1),
             (Cat %)
           hause
             (Cat N)(Gender N)(Num SG)(Case Dat)(ID 0-1)
           hauses
             (Cat N)(Gender N)(Num SG)(Case Gen)(ID 0-1)


query   -> mögen
filter  -> (Cat N)
result  -> mögen
             (Cat N)(Gender N)(Num SG)(Case Nom)(ID 0-1),
             (Cat N)(Gender N)(Num SG)(Case Acc)(ID 0-1),
             (Cat N)(Gender N)(Num SG)(Case Dat)(ID 0-1)
           mögens
             (Cat N)(Gender N)(Num SG)(Case Gen)(ID 0-1)
           moegen
             (Cat N)(Gender N)(Num SG)(Case Nom)(ID 0-1)
               (Flach ouml),
             (Cat N)(Gender N)(Num SG)(Case Acc)(ID 0-1)
               (Flach ouml),
             (Cat N)(Gender N)(Num SG)(Case Dat)(ID 0-1)
               (Flach ouml)
           moegens
             (Cat N)(Gender N)(Num SG)(Case Gen)(ID 0-1)
               (Flach ouml)


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.