do something on the spur of the moment vs improvise

do something on the spur of the moment

improvise

verb
  • To make something up or invent it as one goes on; to proceed guided only by imagination, intuition, and guesswork rather than by a careful plan. 

How often have the words do something on the spur of the moment and improvise occurred in a corpus of books? (source: Google Ngram Viewer )