Lexical Tools

Antonym Substitution

  • Short Description: Retrieve antonyms for subterm substitutions

  • Full Description:

    This flow retrieves negative and/or endpoint bounded and asymmetric bounded antonyms that can be applied in subterm substitution for concept mapping applications. The generic rules for antonym substitution for an aPair of Ant-1|Ant-2 are:

    • bounded antonyms:
      • negative Ant-1 = Ant 2
      • negative Ant-2 = Ant 1
    • asymmetric bounded antonyms:
      • negative Ant-1 = Ant 2 (if type = AB2)
      • negative Ant-2 = Ant 1 (if type = AB1)

    For example:

    • good|bad|AB2: He is not good. = He is bad.
    • interior|exterior|B: This isn't an interior. = This is an exterior.
    • professional|amateur|B: You haven't been a professional. = You have been an amateur.
    • amateur|professional|B: She is no amateur. = She is professional.
    • admit|deny|B: I do not admit. = I deny.
    • outside|within|B: It wouldn't be landing outside the line = It would be landing within the line.
    • outside|inside|B: It is never outside = It is inside.

    The results can be applied for subterm substitution to increase recall and preserve the precision (meaning). This requires the negative pattern recognition algorithm first, then apply the antonym substitution.

    The outputs are sorted in the order of a case sensitive alphabetical, then EUI.

    The details information (-m option) of the antonym records show the type, negation, domain and source of antonyms. The format is:
    |FACT|Key (lcNoPunc)|Antonym-1|EUI-1|Antonym-2|EUI 2|Category|Type|Negation|Domain|Source

    where key, type, negation, domain, source are described in antonym flow component.

Please refer to antonym design documents for details.

  • Difference: None

  • Features:
    1. Find antonym substitution of an input term from database.
    2. Sort antonyms by alphabetic order, then EUI.
    3. Apply flow specific option of source. The option of type (must be [B] or [AB2]) and negation (irrelevant) has no effects on this flow.


  • Symbol: zs

  • Examples:
    
    shell> lvg -f:zs -m -n
    love
    love|-No Output-
    
    can
    can|can't|64|1|zs|1|FACT|can|can|E0014877|can't|E0014877|modal|B|N2|possibility|LEX|
    can|cannot|64|1|zs|1|FACT|can|can|E0014877|cannot|E0014877|modal|B|N2|possibility|LEX|
    
    careless
    careless|-No Output-
    
    happy
    happy|unhappy|1|1|zs|1|FACT|happy|happy|E0030812|unhappy|E0063156|adj|AB2|O|quality|PD|
    
    sad
    sad|-No Output-
    
    accidental
    accidental|intentional|1|1|zs|1|FACT|accidental|accidental|E0006721|intentional|E0034962|adj|AB2|O|quality|CC|
    accidental|nonaccidental|1|1|zs|1|FACT|accidental|accidental|E0006721|nonaccidental|E0208392|adj|B|O|quality|PD|
    
    true
    true|false|1|1|zs|1|FACT|true|true|E0062365|false|E0027238|adj|B|N2|quality|CC|
    true|untrue|1|1|zs|1|FACT|true|true|E0062365|untrue|E0063406|adj|B|BN2|quality|PD|
    
    
    More examples

  • Implementation Logic:
    1. Remove punctuation from the input term.
      • Lowercase characters from input term.
      • Find antonyms of the input term from database with type of [B] or [AB2].
      • Apply filter option of category.
    2. Assign category and inflection (base) to the LexItem.
    3. Sort antonyms in a case sensitive alphabetic order, then EUI.

  • Source Code: ToAntonymSubstitution.java

  • Hierarchy: Object -> Transformation -> ToAntonymSubstitution