You might want to look at the entries for "Off-Color Humor" and
"Medievalism" in my _Oxford Companion to Mark Twain_.

Gregg Camfield