Identifying key elements in a text