Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.

Lexical Tools

Flow Specific Option - Derivation Restriction

  • Description:

    This option is used to filter derivations generated by facts and rules from the derivational morphology flows. This option is used to control the variants generated using the derivation modules. Its argument can be 1, 2, or 3.

    • 1: restricts the outputs to those variants which are known to the lexicon (facts only). This is the default.
    • 2: restricts the outputs to those variants which are known to the lexicon, unless none of the variants are found in the lexicon, in which case the rule generated list is returned (facts or rules). In other words, the result will be the same as option 1 if its derivations are in facts.
    • 3: No restriction on the outputs of the morphology. Both facts and rules generated variants are displayed (facts and rules).


  • Features:
    1. Restrict the output for derivation flows.


  • Symbol: kd:INT

  • Examples:
    shell> lvg -f:d -kd:1 -m
    enjoy
    enjoy|joy|1024|1|d|1|FACT|enjoy|1024|E0025414|joy|1024|E0790957|P|O|en|
    enjoy|enjoyable|1|1|d|1|FACT|enjoy|1024|E0025414|enjoyable|1|E0025415|S|O|None|
    enjoy|enjoyer|128|1|d|1|FACT|enjoy|1024|E0025414|enjoyer|128|E0590299|S|O|None|
    enjoy|enjoyment|128|1|d|1|FACT|enjoy|1024|E0025414|enjoyment|128|E0025417|S|O|None|
    
    shell> lvg -f:d -kd:2 -m
    enjoy
    enjoy|joy|1024|1|d|1|FACT|enjoy|1024|E0025414|joy|1024|E0790957|P|O|en|
    enjoy|enjoyable|1|1|d|1|FACT|enjoy|1024|E0025414|enjoyable|1|E0025415|S|O|None|
    enjoy|enjoyer|128|1|d|1|FACT|enjoy|1024|E0025414|enjoyer|128|E0590299|S|O|None|
    enjoy|enjoyment|128|1|d|1|FACT|enjoy|1024|E0025414|enjoyment|128|E0025417|S|O|None|
    
    shell> lvg -f:d -kd:3 -m
    enjoy
    enjoy|joy|1024|1|d|1|FACT|enjoy|1024|E0025414|joy|1024|E0790957|P|O|en|
    enjoy|enjoyable|1|1|d|1|FACT|enjoy|1024|E0025414|enjoyable|1|E0025415|S|O|None|
    enjoy|enjoyer|128|1|d|1|FACT|enjoy|1024|E0025414|enjoyer|128|E0590299|S|O|None|
    enjoy|enjoyment|128|1|d|1|FACT|enjoy|1024|E0025414|enjoyment|128|E0025417|S|O|None|
    enjoy|enjoyless|1|1|d|1|RULE|$|noun|base|less$|adj|base|
    enjoy|enjoytous|1|1|d|1|RULE|$|noun|base|tous$|adj|base|
    enjoy|enjoyism|128|1|d|1|RULE|$|noun|base|ism$|noun|base|
    enjoy|enjoyfree|1|1|d|1|RULE|$|noun|base|free$|adj|base|
    enjoy|enjoyful|1|1|d|1|RULE|$|noun|base|ful$|adj|base|
    enjoy|enjoycide|128|1|d|1|RULE|$|noun|base|cide$|noun|base|
    enjoy|enjoyary|1|1|d|1|RULE|$|noun|base|ary$|adj|base|
    enjoy|enjoyship|128|1|d|1|RULE|$|noun|base|ship$|noun|base|
    enjoy|enjoyic|1|1|d|1|RULE|$|noun|base|ic$|adj|base|
    enjoy|enjoyly|1|1|d|1|RULE|$|noun|base|ly$|adj|base|
    enjoy|enjoyed|1|1|d|1|RULE|$|noun|base|ed$|adj|base|
    enjoy|enjoying|128|1|d|1|RULE|$|verb|base|ing$|noun|base|
    enjoy|enjoynce|128|1|d|1|RULE|$|verb|base|nce$|noun|base|
    enjoy|enjoyion|128|1|d|1|RULE|$|verb|base|ion$|noun|base|
    enjoy|enjoyance|128|1|d|1|RULE|$|verb|base|ance$|noun|base|
    enjoy|enjoyation|128|1|d|1|RULE|$|verb|base|ation$|noun|base|
    enjoy|enjoyor|128|1|d|1|RULE|$|verb|base|or$|noun|base|
    enjoy|enjoyed|1|1|d|1|RULE|$|verb|base|ed$|adj|base|
    enjoy|enjoyage|128|1|d|1|RULE|$|verb|base|age$|noun|base|
    enjoy|enjoyant|128|1|d|1|RULE|$|verb|base|ant$|noun|base|
    enjoy|enjoyness|128|1|d|1|RULE|$|adj|base|ness$|noun|base|
    enjoy|enjoyly|2|1|d|1|RULE|$|adj|base|ly$|adv|base|
    enjoy|enjoyally|2|1|d|1|RULE|$|adj|base|ally$|adv|base|
    enjoy|enjoyity|128|1|d|1|RULE|$|adj|base|ity$|noun|base|
    enjoy|enjoys|128|1|d|1|RULE|$|adj|base|s$|noun|base|
    enjoy|enjoyism|128|1|d|1|RULE|$|adj|base|ism$|noun|base|
    enjoy|enjoical|1|1|d|1|RULE|y$|noun|base|ical$|adj|base|
    enjoy|enjoic|1|1|d|1|RULE|y$|noun|base|ic$|adj|base|
    enjoy|enjoist|128|1|d|1|RULE|y$|noun|base|ist$|noun|base|
    enjoy|enjoial|1|1|d|1|RULE|y$|noun|base|ial$|adj|base|
    enjoy|enjoication|128|1|d|1|RULE|y$|verb|base|ication$|noun|base|
    enjoy|enjoier|128|1|d|1|RULE|y$|verb|base|ier$|noun|base|
    enjoy|enjoiness|128|1|d|1|RULE|y$|adj|base|iness$|noun|base|
    enjoy|enjoily|2|1|d|1|RULE|y$|adj|base|ily$|adv|base|
    enjoy|enjoe|128|1|d|1|RULE|y$|adj|base|e$|noun|base|
    
  • Implementation Logic:
    1. Implemented in the OutputFilter & ToDerivation classes.