duly vs unduly

duly

adv
  • Regularly; at the proper time. 

  • In a due, fit, or becoming manner; as it ought to be; properly. 

unduly

adv
  • Undeservedly; in a way that is not warranted. 

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