Lexicon Augmenter

This function extends a given list of keywords by finding related terms through two complementary strategies. First, it queries WordNet to retrieve synonyms, hypernyms (broader concepts), and hyponyms (narrower concepts) for each input word. Second, it uses pre-trained embedding models to search a pre-indexed vocabulary of WordNet terms and surface semantically similar words that the graph traversal might miss. For example, given the word "car", the function may return "automobile" (synonym), "vehicle" (hypernym), "SUV" (hyponym), and "dealer" or "motorway" (semantically near terms), depending on the selected parameters. This function is typically useful for defining brand clusters or expanding query vocabularies for search and classification tasks.

Parameters

Output

A CSV file containing the list of input words and related words - classified as words belonging to synonyms, hypernyms, hyponyms, or words that are close in the embedding space (near).