Obligatory sci-fi reference: Isaac Asimov's "Jokester", where someone asks a sentient supercomputer to analyze humour with... consequences.
http://blog.ac-versailles.fr/villaroylit/public/Jokester.pdf