The only way to do this is to get a couple of thousand people (monkeys will not do it, sorry) to view thousands of funny sentences / stories, evaluate them, and then create some kind of expert system / neural network from it. Given the problem and its subjectivity (a thing funny to one person may not be funny, even offensive, another), I would say that this is an impossible task.
Dmitri Nesteruk
source share