Generate synonyms, recursively
Recursively retrieves synonyms from the input. That is, return the synonyms of synonyms ... until there are no more, or until a cycle is detected. After 2017+ release, there are three synonym sources (CUI, EUI, and NLP), different algorithm are applied to generate the recursive synonyms for different types of synonym source:
For example, synonyms of "success" are:
success|succeed|1024|1|y|1|FACT|success|success|noun|succeed|verb|E0058772|
succeed|success|128|1|y|1|FACT|succeed|succeed|verb|success|noun|E0058769| succeed|succession|128|1|y|1|FACT|succeed|succeed|verb|succession|noun|E0058769|
success|succeed|1024|1|r|1|FACT|success|noun|succeed|verb|E0058772|y| success|succession|128|1|r|1|FACT|succeed|verb|succession|noun|E0058769|yy|
When the -m flag is specified, the fact that applied in the last step in the recursive synonyms is reported along with the history of the mutations. The format is as follows:
|FACT|term for synonyms|category|synonym|category|sSource|history|
where,
shell> lvg -f:r -m die die|death|128|1|r|1|FACT|die|verb|death|noun|E0022536|y| die|expire|1024|1|r|1|FACT|die|verb|expire|verb|NLP_LVG|y| die|terminate|1024|1|r|1|FACT|expire|verb|terminate|verb|NLP_LVG|yy| chest chest|pectoral|1|1|r|1|FACT|chest|noun|pectoral|adj|NLP_LVG|y| chest|breast|128|1|r|1|FACT|pectoral|adj|breast|noun|NLP_LVG|yy| chest|thoracic|1|1|r|1|FACT|chest|noun|thoracic|adj|NLP_LVG|y|More example