analogy vs synonym

analogy

noun
  • The correspondence of a word or phrase with the genius of a language, as learned from the manner in which its words and phrases are ordinarily formed; similarity of derivative or inflectional processes. 

  • A relationship of resemblance or equivalence between two situations, people, or objects, especially when used as a basis for explanation or extrapolation. 

  • The proportion or the equality of ratios. 

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 analogy and synonym occurred in a corpus of books? (source: Google Ngram Viewer )