caprice vs intrusive thought

caprice

noun
  • An impulsive, seemingly unmotivated action, change of mind, or notion. 

  • A capriccio. 

  • A brief romance. 

  • An unpredictable or sudden condition, change, or series of changes. 

  • A disposition to be impulsive. 

intrusive thought

noun
  • an unwelcome involuntary thought, image or idea 

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