rightful vs undue

rightful

adj
  • By right; by law. 

undue

adj
  • That which ought not to be done; illegal; unjustified. 

  • Not owing or payable. 

  • Excessive; going beyond that what is natural or sufficient. 

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