Researchers have developed a computer program that can detect sarcasm in written (typed) words with an accuracy of about 80%.