Comes from Mrs. Malaprop, a character in 'The Rivals' - a 1775 play by Richard
Brinsley Sheridan. She
imagines herself to be learned but betrays her ignorance by using words that sound similar to those she intends to use.
Mrs. Malaprop refers to a "
nice derangement of epitaphs" in
the play.