Lexical Tools

Return Known Acronym Expansions

  • Short Description: Return known acronym expansions

  • Full Description:

    Given an acronym, this flow component returns known acronym expansions from the lexicon. The results are sorted in alphabetical order. In 2014, all base forms (instead of just citation form) of acronym expansions are included in LEXICON tables and thus the returned expansions of all base forms (citation forms and spelling variants).

    The -m option add acronym or abbreviation at the end of output.

  • Difference:
    1. Java version returns the original case of acronym expansions from database.
    2. Java version sorts the output by ASCII order (ignoring case).
    3. Java version uses the latest data of acronym expansions.


  • Features:
    1. Return known acronym expansions for an input term.
    2. All punctuations and cases of the input term are ignored.


  • Symbol: a

  • Examples:
    
    shell> lvg -f:a
    IOTA
    IOTA|information overload testing aid|2047|1|a|1|
    IOTA|international ovarian tumor analysis|2047|1|a|1|
    IOTA|International Ovarian Tumor Analysis|2047|1|a|1|
    IOTA|international ovarian tumour analysis|2047|1|a|1|
    IOTA|International Ovarian Tumour Analysis|2047|1|a|1|
    
    shell> lvg -f:a -m
    ACEP
    ACEP|American College of Emergency Physicians|2047|1|a|1|acronym|Unique|
    
    IOTA
    IOTA|information overload testing aid|2047|1|a|1|acronym|NotUnique|
    IOTA|international ovarian tumor analysis|2047|1|a|1|acronym|NotUnique|
    IOTA|International Ovarian Tumor Analysis|2047|1|a|1|acronym|NotUnique|
    IOTA|international ovarian tumour analysis|2047|1|a|1|acronym|NotUnique|
    IOTA|International Ovarian Tumour Analysis|2047|1|a|1|acronym|NotUnique|
    
    anal
    anal|analyse|2047|1|a|1|abbreviation|NotUnique|
    anal|analysis|2047|1|a|1|abbreviation|NotUnique|
    anal|analytic|2047|1|a|1|abbreviation|NotUnique|
    anal|analyze|2047|1|a|1|abbreviation|NotUnique|
    
    More examples

  • Implementation Logic:
    1. Strip punctuations from the input term.
    2. Lowercase the input term.
    3. Performed a SQL query to get acronym expansions from database.
    4. Sort the output by alphabetical order (Db.ExpansionComparator).

  • Source Code: ToExpansions.java

  • Hierarchy: Object -> Transformation -> ToExpansions