Last but not least, there are different types of humor (Raz, 2012), such as wordplay, irony and sarcasm, but there exist few formal taxonomies of humor characteristics.
it is almost impossible to design a general algorithm that can classify all the different types of humor, since even human cannot perfectly classify all of them.