elegy vs epitaph

elegy

noun
  • A mournful or plaintive poem; a funeral song; a poem of lamentation. 

  • A composition of mournful character. 

  • A classical poem written in elegiac meter 

epitaph

noun
  • A poem or other short text written in memory of a deceased person. 

  • An inscription on a gravestone in memory of the deceased. 

verb
  • To write or speak after the manner of an epitaph. 

  • To commemorate by an epitaph. 

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