illegality vs penalty

illegality

noun
  • a defense to the validity of a contract because it was in violation of the law 

  • the state of being illegal 

penalty

noun
  • A punishment for violating rules of procedure. 

  • A punishment for an infraction of the rules, often in the form of being removed from play for a specified amount of time. 

  • A legal sentence. 

  • A direct free kick from the penalty spot, taken after a defensive foul in the penalty box; a penalty kick. 

  • A payment forfeited for an early withdrawal from an account or an investment. 

  • A disadvantageous consequence of a previous event. 

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