I am attaching an upgraded module from my utils.dot. I am indebted to Andrew Lockton for the original idea. His post is not on this board, I suspect it was from the old lounge.

The code is tested only by the sample TEST macros.

Where a list of words (such as a list of synonyms, a list of antonyms etc) is available, I have provided an optional switch to return all the list, the first, last, mid, or a random element of the list.

I will be using this code in an application to effect crude translation of technical text.