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.

    The -m options shows the details information of the synonyms records. Its format is:

    
    |FACT|lowercase of the term|term|category|synonym|category|
    


  • Difference:
    1. The Java version handles input words with punctuations or uppercased characters.


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


  • Symbol: y

  • Examples:
    
    shell> lvg -f:y -m
    aminophylline
    aminophylline|Lixaminol|128|1|y|1|FACT|aminophylline|aminophylline|noun|Lixaminol|noun|
    aminophylline|Mini-Lix|128|1|y|1|FACT|aminophylline|aminophylline|noun|Mini-Lix|noun|
    
    More examples

  • Implementation Logic:
    1. Remove punctuation from the input term.
      • Lowercase characters from input term.
      • Find synonyms of the input term from database.
    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