discourage vs invite

discourage

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

  • To persuade somebody not to do (something). 

noun
  • Lack of courage 

invite

verb
  • To allure; to draw to; to tempt to come; to induce by pleasure or hope; to attract. 

  • To ask for the presence or participation of someone or something. 

  • To encourage. 

  • To request formally. 

noun
  • An invitation. 

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