Identifying the primary function of a sentence