Lexical Tools

Generate Synonyms

  • Short Description: Generate synonyms

  • Full Description:

    This flow retrieves all synonyms of the input from the synonym table in the database.

    The results are sorted in a case insensitive alphabetical order.

    After releases of 2017+, the details information (-m option) of the synonyms records show the sources of synonym. The format is:
    |FACT|lowercase of the term|term|category|synonym|category|source

    where source:

    SourceDescription
    CUISynonyms are:
    • English Terms in MetaThesaurus
    • have same CUI
    • not Chemicals, Drugs, etc.
    • is a base form in Lexicon
    • have POS of adjective, noun, or verb
    • not acronyms or abbreviations

    • spVars and nominalizations are also included
    EUINominalizations in the SPECIALIST Lexicon are Synonyms. Synonym pairs that are included in the above source (CUI) are excluded to avoid duplication. The assocaited EUI of the 1st (key) synonym is displayed.
    NLP_*Synonyms are inherited from NLP projects, such as the original Lexical Tools (Lvg) synonym datatbase (version 2016-), UMLS-core, or other user's specific NLp projects. Synonym pairs that are included in the above two sources (CUI and EUI) are excluded to avoid duplication. This option allows users to add their own synonyms to Lexical Tools. The format is "NLP_*". For example:
    • NLP_LVG: are synonyms from the original Lexical Tools synonym data (2017)
    • NLP_UMLS_CORE: are synonyms from the NLP project of UMLS-Core (TBD)
    • NLP_USER: reserved for user's specific NLP projects

    Please refer to synonyms designed documents for details.

  • Difference:
    1. The Java version handles input words with punctuations or uppercased characters.
    2. Synonyms from UMLS-Metathesaurus, Lexicon, and Lexical Tools are generated and updated annually after 2017+ release
    3. Source information are included in 2017+ release


  • Features:
    1. Find synonyms of an input term from database.
    2. Sort synonyms by alphabetic order.


  • Symbol: y

  • Examples:
    
    shell> lvg -f:y -m
    sensation
    sensation|aesthesia|128|1|y|1|FACT|sensation|sensation|noun|aesthesia|noun|C0036658|
    sensation|esthesia|128|1|y|1|FACT|sensation|sensation|noun|esthesia|noun|C0036658|
    sensation|esthetic|1|1|y|1|FACT|sensation|sensation|noun|esthetic|adj|NLP_LVG|
    sensation|organoleptic|1|1|y|1|FACT|sensation|sensation|noun|organoleptic|adj|C0036658|
    sensation|sensate|1|1|y|1|FACT|sensation|sensation|noun|sensate|adj|C0036658|
    sensation|sense|1024|1|y|1|FACT|sensation|sensation|noun|sense|verb|C0036658|
    sensation|sense|128|1|y|1|FACT|sensation|sensation|noun|sense|noun|C0036658|
    
    heat
    heat|heat|128|1|y|1|FACT|heat|heat|verb|heat|noun|C0018837|
    heat|heat|1024|1|y|1|FACT|heat|heat|noun|heat|verb|C0018837|
    heat|heating|128|1|y|1|FACT|heat|heat|verb|heating|noun|C0018837|
    heat|heating|128|1|y|1|FACT|heat|heat|noun|heating|noun|C0018837|
    heat|thermal|1|1|y|1|FACT|heat|heat|noun|thermal|adj|NLP_LVG|
    heat|thermal energy|128|1|y|1|FACT|heat|heat|verb|thermal energy|noun|C0018837|
    heat|thermal energy|128|1|y|1|FACT|heat|heat|noun|thermal energy|noun|C0018837|
    heat|thermic|1|1|y|1|FACT|heat|heat|noun|thermic|adj|NLP_LVG|
    heat|thermogenous|1|1|y|1|FACT|heat|heat|noun|thermogenous|adj|NLP_LVG|
    
    plant
    plant|botanic|1|1|y|1|FACT|plant|plant|noun|botanic|adj|NLP_LVG|
    plant|phytogenous|1|1|y|1|FACT|plant|plant|noun|phytogenous|adj|NLP_LVG|
    plant|Plantae|128|1|y|1|FACT|plant|plant|noun|Plantae|noun|C0032098|
    plant|planting|128|1|y|1|FACT|plant|plant|verb|planting|noun|E0048176|
    plant|vegetal|1|1|y|1|FACT|plant|plant|noun|vegetal|adj|NLP_LVG|
    plant|Viridiplantae|128|1|y|1|FACT|plant|plant|noun|Viridiplantae|noun|C0032098|
    
    shell> lvg -f:y -m -kss:C
    plant
    plant|Plantae|128|1|y|1|FACT|plant|plant|noun|Plantae|noun|C0032098|
    plant|Viridiplantae|128|1|y|1|FACT|plant|plant|noun|Viridiplantae|noun|C0032098|
    
    shell> lvg -f:y -m -kss:E
    plant
    plant|planting|128|1|y|1|FACT|plant|plant|verb|planting|noun|E0048176|
    
    shell> lvg -f:y -m -kss:N
    plant
    plant|botanic|1|1|y|1|FACT|plant|plant|noun|botanic|adj|NLP_LVG|
    plant|phytogenous|1|1|y|1|FACT|plant|plant|noun|phytogenous|adj|NLP_LVG|
    plant|vegetal|1|1|y|1|FACT|plant|plant|noun|vegetal|adj|NLP_LVG|
    
    More examples

  • Implementation Logic:
    1. Remove punctuation from the input term.
      • Lowercase characters from input term.
      • Find synonyms of the input term from databasea by source(s).
    2. Assign category and inflection (base) to the LexItem.
    3. Sort synonyms in a case insensitive alphabetic order.

  • Source Code: ToSynonyms.java

  • Hierarchy: Object -> Transformation -> ToSynonyms