Eference books that contain words of similar meaning and opposite meaning are called THESAURUS.
Thesaurus is a dictionary of words which list words of similar meaning called synonymys and words of opposite meaning called antonyms. The thesaurus is a reference book which groups words in accordance with their similarities rather in alphabetical order which is used by the general dictionary.