take a crap vs take a shit

take a crap

verb
  • To defecate. 

take a shit

verb
  • To defecate. 

  • To fail or malfunction. 

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