synonym
Note
The main difference between the synonym() and the thesaurus() function is that synonym() uses synonyms dictionaries only, while thesaurus() uses both synonyms and semantics dictionaries.
Arguments
The function requires a term which can be any word or phrase present in a dictionary of the Synonyms category. The function takes any number of terms as a comma-separated list.
In order to narrow the search, it is possible to set an optional argument part_ of_speech (POS-tag). In such case the function only returns those matches that have the indicated POS-tag.
Part of speech value |
Short Notation |
Example |
noun |
event, sister’s, cats … |
|
verb |
talked, admit, moving, goes … |
|
adverb |
advb |
suddenly, more, yet, now … |
adjective |
adjc |
big, important, hard-working … |
The function also accepts the following optional named parameters:
-
scope — defines the search mode within a phrase.
-
scope:=text (default value): synonyms of the whole phrase are searched.
-
scope:=word: synonyms of the words that constitute a phrase are searched, i.e. synonym("a b", scope:=word) = phrase(synonym(a), synonym(b)).
-
-
pos — allows POS-dependent/independent search on the basis of POS-tags stated in the synonyms dictionary.
-
pos:=yes (default value): synonyms of the same part of speech as argument.
-
pos:=no: synonyms of any part of speech.
-
-
header — defines the header’s form.
-
header:=form — header is the specified form of a word.
-
header:=lemma (default value) — header is the dictionary form of a word.
-
header:=any — header is both the dictionary and the specified form of a word.
-
If the parameter scope is omitted, synonyms of the whole phrase will be returned.