Lexical Tools

Fruitful variants, Enhanced

  • Short Description: Retrieve or generate all fruitful variants for the input.

  • Full Description:

    This flow component is intended to improve performance on generating fruitful variants. It utilizes the flow component of -f:v first to retrieve fruitful variants from a pre-computed database. If no records are found, use the flow -f:G to generate fruitful variants.

    There is a difference on the result between this flow and -f:G flow. This is because -f:v flow is case insensitive.

    The history notation and distance score are shown below:

    OperationNotationDistance score
    No Operationsn0
    Spelling Variants0
    Inflectional Varianti1
    Synonym y2
    Acronym/AbbreviationA2
    Expansiona2
    Derivational Variantd3

    Only suffix derivations are used to generate fruitful variants after 2018.

    The -m option shows detail mutate information includes flow history, distance score, and tag information. The tag information is represented by a long value by combining tag bit values. Currently, two bits are defined as listed in following table:

    BitValueTag
    01Noun/Adj only in recursive derivation
    12Unique acronyms/expansion

    Please refer to Tag class for details.

  • Difference:

    The data in the Java version is much more thorough.

  • Features:
    1. Retrieve or generates all fruitful variants and provides flow history and distance score.


  • Symbol: Ge

  • Examples:
    
    shell> lvg -f:Ge -m
    neurological
    
    neurological|neurological|1|1|Ge|1|1|1|n|0|3|
    neurological|neuro|1|1|Ge|1|1|1|n+A|2|1|
    neurological|neurol|1|1|Ge|1|1|1|n+A|2|1|
    neurological|neurologic|1|1|Ge|1|1|1|n+y|2|3|
    neurological|neurologically|2|1|Ge|1|1|1|n+d|3|2|
    neurological|neurology|128|1|Ge|1|1|1|n+d|3|3|
    neurological|neurologies|128|8|Ge|1|1|1|n+d+i|4|3|
    neurological|neurologist|128|1|Ge|1|1|1|n+dd|6|2|
    neurological|neurologists|128|8|Ge|1|1|1|n+dd+i|7|2|
    neurological|nervous system|128|1|Ge|1|1|1|n+dd+y|8|2|
    neurological|nervous systems|128|8|Ge|1|1|1|n+dd+y+i|9|2|
    
    More examples

  • Implementation Logic:
    1. Utilize -f:v to retrieve all variants from a database table.
    2. If no record found, utilize -f:G to generate all variants.

  • Source Code: ToFruitfulEnhanced.java

  • Hierarchy: Object -> Transformation -> ToFruitfulEnhanced