Lexical Tools

Input Inflection Filter

  • Description:

    This option defines the field to use as the input inflections. This option specifies which field marks the syntactic inflections of the input term.

    This option has effects on the following flow components: b, i, ici, L, Lp, Ln, s.

    Note: The first field is 1. If this option is not specified, all syntactic inflections are applied to the input in the inflection modules. If this option is present, this field should contain a long (integer) that is formed by OR'ing (or adding) the following integers:

    Value Variant Other Symbols
    1 base  
    2 comparative  
    4 superlative  
    8 plural
    • p
    16 presPart
    • ing
    32 past  
    64 pastPart  
    128 pres3s  
    256 positive  
    512 singular
    • s
    1024 infinitive
    • inf
    2048 pres123p  
    4096 pastNeg  
    8192 pres123pNeg  
    16384 pres1s  
    32768 past1p23pNeg  
    65536 past1p23p  
    131072 past1s3sNeg  
    262144 pres1p23p  
    524288 pres1p23pNeg  
    1048576 past1s3s  
    2097152 pres  
    4194304 pres3sNeg  
    8388608 presNeg  

    where:

    • pres: present
    • past: past
    • Part: participle
    • 1: first personal
    • 2: second personal
    • 3: third personal
    • s: singular
    • p: plural
    • Neg: Negative


  • Features:
    1. Assign the specified inflections from the input field to the source inflection of input LexItem.


  • Symbol: if:INT

  • Examples:

    shell> lvg -f:b -if:2
    left|1
    left|1|left|1|1|b|1|
    left|1|left|2|1|b|1|
    left|1|left|128|1|b|1|
    
    left|2
    
    left|128
    
    left|256
    left|256|left|1|1|b|1|
    left|256|left|2|1|b|1|
    
    left|512
    left|512|left|128|1|b|1|
    
    left|1024
    
    
  • Implementation Logic:
    1. Get the specified filed number of the input inflection filter.
    2. Get the specified inflections from the input term by the specified field number.
    3. Assign the specified inflections to the source inflection of the input LexItem.
    4. Do the filtering on flows: b, i, ici, L, Lp, Ln, s.