Analysis of patent applications also reveals invention that only delivers text messages when you’re in the right mood.