Flow Specific Option - Derivation Restriction

  • Description:

    Filters the outputs (facts and rules) generated 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 (facts and rules) 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 rules generated list is returned (facts or rules). In other words, the result will be the same as option 1 if its derivations 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
    color
    color|colorable|1|1|d|1|FACT|color|128|E0017902|colorable|1|E0523388|S|O|None|
    color|colored|1|1|d|1|FACT|color|128|E0017902|colored|1|E0071157|S|O|None|
    color|colorful|1|1|d|1|FACT|color|128|E0017902|colorful|1|E0017909|S|O|None|
    color|colorist|128|1|d|1|FACT|color|128|E0017902|colorist|128|E0586864|S|O|None|
    color|colorize|1024|1|d|1|FACT|color|128|E0017902|colorize|1024|E0318298|S|O|None|
    color|colorable|1|1|d|1|FACT|color|1024|E0017903|colorable|1|E0523388|S|O|None|
    color|colorant|128|1|d|1|FACT|color|1024|E0017903|colorant|128|E0207286|S|O|None|
    color|color|1024|1|d|1|FACT|color|128|E0017902|color|1024|E0017903|Z|O|None|
    color|bicolor|1|1|d|1|FACT|color|128|E0017902|bicolor|1|E0205800|P|O|bi|
    color|bi-color|1|1|d|1|FACT|color|128|E0017902|bi-color|1|E0205800|P|O|bi-|
    color|concolor|1|1|d|1|FACT|color|128|E0017902|concolor|1|E0424933|P|O|con|
    color|multicolor|1|1|d|1|FACT|color|128|E0017902|multicolor|1|E0330531|P|O|multi|
    color|multi-color|1|1|d|1|FACT|color|128|E0017902|multi-color|1|E0330531|P|O|multi-|
    color|pseudocolor|128|1|d|1|FACT|color|128|E0017902|pseudocolor|128|E0509680|P|O|pseudo|
    color|pseudo-color|128|1|d|1|FACT|color|128|E0017902|pseudo-color|128|E0509680|P|O|pseudo-|
    color|recolor|1024|1|d|1|FACT|color|1024|E0017903|recolor|1024|E0363066|P|O|re|
    color|unicolor|1|1|d|1|FACT|color|128|E0017902|unicolor|1|E0344875|P|O|uni|
    color|color|128|1|d|1|FACT|color|1024|E0017903|color|128|E0017902|Z|O|None|
    
    shell> lvg -f:d -kd:2 -m
    color
    color|colorable|1|1|d|1|FACT|color|128|E0017902|colorable|1|E0523388|S|O|None|
    color|colored|1|1|d|1|FACT|color|128|E0017902|colored|1|E0071157|S|O|None|
    color|colorful|1|1|d|1|FACT|color|128|E0017902|colorful|1|E0017909|S|O|None|
    color|colorist|128|1|d|1|FACT|color|128|E0017902|colorist|128|E0586864|S|O|None|
    color|colorize|1024|1|d|1|FACT|color|128|E0017902|colorize|1024|E0318298|S|O|None|
    color|colorable|1|1|d|1|FACT|color|1024|E0017903|colorable|1|E0523388|S|O|None|
    color|colorant|128|1|d|1|FACT|color|1024|E0017903|colorant|128|E0207286|S|O|None|
    color|color|1024|1|d|1|FACT|color|128|E0017902|color|1024|E0017903|Z|O|None|
    color|bicolor|1|1|d|1|FACT|color|128|E0017902|bicolor|1|E0205800|P|O|bi|
    color|bi-color|1|1|d|1|FACT|color|128|E0017902|bi-color|1|E0205800|P|O|bi-|
    color|concolor|1|1|d|1|FACT|color|128|E0017902|concolor|1|E0424933|P|O|con|
    color|multicolor|1|1|d|1|FACT|color|128|E0017902|multicolor|1|E0330531|P|O|multi|
    color|multi-color|1|1|d|1|FACT|color|128|E0017902|multi-color|1|E0330531|P|O|multi-|
    color|pseudocolor|128|1|d|1|FACT|color|128|E0017902|pseudocolor|128|E0509680|P|O|pseudo|
    color|pseudo-color|128|1|d|1|FACT|color|128|E0017902|pseudo-color|128|E0509680|P|O|pseudo-|
    color|recolor|1024|1|d|1|FACT|color|1024|E0017903|recolor|1024|E0363066|P|O|re|
    color|unicolor|1|1|d|1|FACT|color|128|E0017902|unicolor|1|E0344875|P|O|uni|
    color|color|128|1|d|1|FACT|color|1024|E0017903|color|128|E0017902|Z|O|None|
    
    shell> lvg -f:d -kd:3 -m
    color
    color|colorable|1|1|d|1|FACT|color|128|E0017902|colorable|1|E0523388|S|O|None|
    color|colored|1|1|d|1|FACT|color|128|E0017902|colored|1|E0071157|S|O|None|
    color|colorful|1|1|d|1|FACT|color|128|E0017902|colorful|1|E0017909|S|O|None|
    color|colorist|128|1|d|1|FACT|color|128|E0017902|colorist|128|E0586864|S|O|None|
    color|colorize|1024|1|d|1|FACT|color|128|E0017902|colorize|1024|E0318298|S|O|None|
    color|colorable|1|1|d|1|FACT|color|1024|E0017903|colorable|1|E0523388|S|O|None|
    color|colorant|128|1|d|1|FACT|color|1024|E0017903|colorant|128|E0207286|S|O|None|
    color|color|1024|1|d|1|FACT|color|128|E0017902|color|1024|E0017903|Z|O|None|
    color|bicolor|1|1|d|1|FACT|color|128|E0017902|bicolor|1|E0205800|P|O|bi|
    color|bi-color|1|1|d|1|FACT|color|128|E0017902|bi-color|1|E0205800|P|O|bi-|
    color|concolor|1|1|d|1|FACT|color|128|E0017902|concolor|1|E0424933|P|O|con|
    color|multicolor|1|1|d|1|FACT|color|128|E0017902|multicolor|1|E0330531|P|O|multi|
    color|multi-color|1|1|d|1|FACT|color|128|E0017902|multi-color|1|E0330531|P|O|multi-|
    color|pseudocolor|128|1|d|1|FACT|color|128|E0017902|pseudocolor|128|E0509680|P|O|pseudo|
    color|pseudo-color|128|1|d|1|FACT|color|128|E0017902|pseudo-color|128|E0509680|P|O|pseudo-|
    color|recolor|1024|1|d|1|FACT|color|1024|E0017903|recolor|1024|E0363066|P|O|re|
    color|unicolor|1|1|d|1|FACT|color|128|E0017902|unicolor|1|E0344875|P|O|uni|
    color|color|128|1|d|1|FACT|color|1024|E0017903|color|128|E0017902|Z|O|None|
    color|colorism|128|1|d|1|RULE|$|noun|base|ism$|noun|base|
    color|colorary|1|1|d|1|RULE|$|noun|base|ary$|adj|base|
    color|coloric|1|1|d|1|RULE|$|noun|base|ic$|adj|base|
    color|coloral|1|1|d|1|RULE|$|noun|base|al$|adj|base|
    color|colorment|128|1|d|1|RULE|$|verb|base|ment$|noun|base|
    color|colorer|128|1|d|1|RULE|$|verb|base|er$|noun|base|
    color|colorance|128|1|d|1|RULE|$|verb|base|ance$|noun|base|
    color|colorion|128|1|d|1|RULE|$|verb|base|ion$|noun|base|
    color|coloring|128|1|d|1|RULE|$|verb|base|ing$|noun|base|
    color|coloror|128|1|d|1|RULE|$|verb|base|or$|noun|base|
    color|colorness|128|1|d|1|RULE|$|adj|base|ness$|noun|base|
    color|colorly|2|1|d|1|RULE|$|adj|base|ly$|adv|base|
    color|colorally|2|1|d|1|RULE|$|adj|base|ally$|adv|base|
    color|colority|128|1|d|1|RULE|$|adj|base|ity$|noun|base|
    
  • Implementation Logic:
    1. Implemented in the OutputFilter & ToDerivation classes.