Determining the reason an author writes a text