What does the word Hamlet mean?

A hamlet is a small village, or a play by William Shakespeare.