Text this: Foundations of speech act theory