nondiscretionary vs optional

nondiscretionary

adj
  • Not discretionary; thus, frequently, mandatory 

  • Of or pertaining to non-discretionary spending 

optional

noun
  • In various programming languages, a kind of variable that is assigned a specific data type but may or may not hold an actual value. 

  • Something that is not compulsory, especially part of an academic course. 

adj
  • Not compulsory; left to personal choice; elective. 

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