Arbortext Command Language > Functions by Alphabetical Listing > thesaurus
  
thesaurus
thesaurus ([doReplace[, word]])
This function opens the Thesaurus dialog box, using the selected word in the active document as the default value of word. If no word is selected, the word nearest to the cursor is used.
The function looks up word in the Looked Up: box. If doReplace is set to a non-zero value (or is not specified), clicking Replace on the dialog box will substitute the preferred word. If doReplace is set to zero (0), clicking Replace will close the dialog box without performing a word replacement.