castoff vs snippet

castoff

noun
  • Something that has been rejected or discarded; a reject. 

adj
  • discarded, rejected. 

snippet

noun
  • A small part of something, such as a song or fabric; sample. 

  • A text file containing a relatively small amount of code, useless by itself, along with instructions for inserting that code into a larger codebase. 

verb
  • To produce a snippet (small part) of; to excerpt. 

  • To make small cuts, to snip, particularly with scissors. 

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