resign vs swear off

resign

verb
  • To quit (a job or position). 

  • To submit passively; to give up as hopeless or inevitable. 

  • To give up; to relinquish ownership of. 

  • To hand over (something to someone), place into the care or control of another. 

swear off

verb
  • To quit or cease completely, or to promise to quit, as a bad habit. 

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