elegy vs hymn

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 

hymn

noun
  • A song of praise or worship, especially a religious one. 

verb
  • To praise or extol in hymns. 

  • To sing a hymn. 

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