CPWR

From UNLwiki
Revision as of 17:19, 8 December 2011 by imported>Martins
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Composition rules (CPWR) are used to generate compounds out of the base form.

When to use composition rules

Composition rules must be created only in case of multiword expressions with the following features:


When not to use composition rules

How to create a composition rule

Examples of composition rules

Composition rules in the dictionary

In the UNLarium frameword, composition rules may be expressed in two different formats:

  • As complex structures, such as
[[sub-NLW][sub-NLW]...[sub-NLW]]  {ID}  “UW”  (ATTR , ..., #01(ATTR, ...), #02(ATTR, ...), ...)  < FLG , FRE , PRI >; COMMENTS
  • As simple structures, such as
[NLW]  {ID}  “UW”  (ATTR , ..., BF=<BASE FORM>, CPWR=MTW(<COMPOSITION RULE>) )  < FLG , FRE , PRI >; COMMENTS
    • Where <COMPOSITION RULE> is the rule or set of rules used to form the lemma out of the base form, and <BASE FORM> is the base form

Example of dictionary entries containing composition rules

  • [[bring] [back]] {12343} "202078294" (pos=VER, #01(IFX(ET0:=4>"ought")), #02(pos=PRE)) <eng, 0, 0>;
  • [bring back] {12343} "202078294" (pos=VER, BF=bring, CPWR=MTW(VA([back],A,M0);)) <eng, 0, 0>;