ghostwrite vs invent

ghostwrite

verb
  • To write under the name of another (especially literary works). 

  • To author a literary work or speech in the place of another. 

invent

verb
  • To create something fictional for a particular purpose. 

  • To design a new process or mechanism. 

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