metonym vs synonym

metonym

noun
  • A word that names an object from a single characteristic of it or of a closely related object; a word used in metonymy. 

  • A concept, idea, or word used to represent, typify, or stand in for a broader set of ideas. 

synonym

noun
  • A word or phrase with a meaning that is the same as, or very similar to, another word or phrase. 

  • An alternative (often shorter) name defined for an object in a database. 

  • Any name for a taxon, usually a validly published, formally accepted one, but often also an unpublished name. 

  • A word whose meaning is the same as that of another word. 

  • Any of the formal names for a taxon, including the valid name (i.e. the senior synonym). 

How often have the words metonym and synonym occurred in a corpus of books? (source: Google Ngram Viewer )