discourage vs warn

discourage

verb
  • To persuade somebody not to do (something). 

  • To extinguish the courage of; to dishearten; to depress the spirits of; to deprive of confidence; to deject. 

noun
  • Lack of courage 

warn

verb
  • To notify or inform (someone, about something). 

  • To caution or admonish (someone) against unwise or unacceptable behaviour. 

  • To give warning. 

  • To summon (someone) to or inform of a formal meeting or duty. 

  • To advise or order to go or stay away. 

  • To make (someone) aware of impending danger, evil, etc. 

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