Funny timing on that, I just spent some time last week doing a very basic "sentiment analysis" (basically emoji analysis) on the iMessage db. I was a bit surprised by the database layout, but it's pretty easy to get into and could make for some more interesting analysis and visualization like this.