Text this: A behavioral theory of elections