WMTrans Unknown Word Analyzer:
Output Syntax Description
Syntax
If there is no result the API functions return null.
If there are more than one result, each single result will be delivered within a different string element of the resulting array of strings.
Lexicalized Word Syntax
If the form has been succesfully analyzed with the lexicalized word analysis API function, the output syntax is the same as the one defined for the simple inflection analyzer:
result ::= citation EOL feature-set
{"," EOL feature-set} EOL.
feature-set ::= {feature-pair}.
feature-pair ::= "(" attribute value ")".
citation ::= string.
attribute ::= string.
value ::= string.
Unknown Word Syntax
The syntax specified for the unknown analysis output considers the fact that there are two kinds of information: inflection and word formation information. Depending on the called API function, it is possible to retrieve information on inflection only, on word formation only or both.
Overall result format (concatenation of all strings in the array of strings):
result ::= i-and-wf-analysis | i-analysis | wf-analysis.
i-and-wf-analysis ::= i-analysis wf-analysis.
i-analysis ::= "<inflection>"
citation EOL feature-set
{"," EOL feature-set} EOL "
</inflection>".
wf-analysis ::= "<wf>" decomposition
EOL target-feature-set ","
EOL {WFRule}+ EOL {component-id}+ EOL
"</wf>".
WFRule ::= WFRule-feature-set.
component-id ::= position-in-segment ":"
citation
(cat-feature-pair | suffix-information) EOL.
suffix-information::= WFCat-feature-set..
Distinguish between lexicalized results and unknown word analysis results using different API function calls.
Here is part of the output of the integration test programs:
Lexicalized Word Function Call
query -> sang
result -> sang
(Cat N)(Gender M)(Num SG)(Case Nom)
(ID 0-1),
(Cat N)(Gender M)(Num SG)(Case Dat)
(ID 0-1),
(Cat N)(Gender M)(Num SG)(Case Acc)
(ID 0-1)
singen
(Cat V)(Aux haben)(Mod Ind)(Temp Impf)
(Pers 1st)(Num SG)(ID 0-1),
(Cat V)(Aux haben)(Mod Ind)(Temp Impf)
(Pers 3rd)(Num SG)(ID 0-1)
query -> sang Filter: (Cat V)
result -> singen
(Cat V)(Aux haben)(Mod Ind)(Temp Impf)(Pers 1st)
(Num SG)(ID 0-1),
(Cat V)(Aux haben)(Mod Ind)(Temp Impf)(Pers 3rd)
(Num SG)(ID 0-1)
query -> saenger
result -> sänger
(Cat N)(Gender M)(Num SG)(Case Nom)
(Flach auml)(ID 0-1),
(Cat N)(Gender M)(Num SG)(Case Dat)
(Flach auml)(ID 0-1),
(Cat N)(Gender M)(Num SG)(Case Acc)
(Flach auml)(ID 0-1),
(Cat N)(Gender M)(Num PL)(Case Nom)
(Flach auml)(ID 0-1),
(Cat N)(Gender M)(Num PL)(Case Gen)
(Flach auml)(ID 0-1),
(Cat N)(Gender M)(Num PL)(Case Acc)
(Flach auml)(ID 0-1)
Unknown Word Function Call (complete output)
query -> aufsinken
result ->
<inflection>
aufsinken
(Cat V)(Aux haben)(Mod Inf)(Temp Pres)
(ID 0-1)
(Cat V)(Aux haben)(Mod Ind)(Temp Pres)
(Pers 1st)(Num PL)(ID 0-1)
(Cat V)(Aux haben)(Mod Ind)(Temp Pres)
(Pers 3rd)(Num PL)(ID 0-1)
(Cat V)(Aux haben)(Mod Conj-1)(Temp Pres)
(Pers 1st)(Num PL)(ID 0-1)
(Cat V)(Aux haben)(Mod Conj-1)(Temp Pres)
(Pers 3rd)(Num PL)(ID 0-1)
</inflection>
<wf>
auf + sinken
(Cat V),
(WFRule
Derivation.To-V.V-To-V.
Prefixing.Detachable-Prefix.V_Irregular)
1: auf
(WFCat Derivation.To-V.V-To-V.
Prefixing.V-Prefix.Detachable)
2: sinken (Cat V)
</wf>
query -> abbausicheres
result ->
<inflection>
abbausicher
(Cat A)(Degree Pos)(AForm es)(ID 0)
</inflection>
<wf>
abbau + sicheres
(Cat A),
(WFRule
Compounding.A-Comp.N+A.
No-Umlaut.N+A_No_Linking_Element)
1: abbau (Cat N)
2: sicher (Cat A)
</wf>
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" |
| OCapRule | "Spelling Rule" |
| ORule | "Spelling Rule" |
| OSepRule | "Spelling Rule" |
| Ortho | "Spelling Variant" |
| 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" |
| ID | Indexes of elements used as unique identifier, together with the citation form |