nationalism vs xenophobia

nationalism

noun
  • Patriotism; the idea of supporting one's country, people or culture. 

  • Support for the union of Northern Ireland and the Republic of Ireland. 

  • Support for the creation of a sovereign nation (which does not currently exist). 

xenophobia

noun
  • A strong antipathy or aversion to strangers or foreigners. 

  • A fear of aliens. 

  • A fear of strangers or foreigners. 

  • A hatred of strangers or foreigners. 

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