A plan-based analysis of indirect speech acts