illegality vs rectitude

illegality

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

  • the state of being illegal 

rectitude

noun
  • Conformity to the rules prescribed for moral conduct; (moral) uprightness, virtue. 

  • Straightness; the state or quality of having a constant direction and not being crooked or bent. 

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