sample code for processing synonyms.