How texts are grouped depending on their social purpose (for example, to recount, to describe, to persuade, to narrate). In literary theory, the term is often used to distinguish texts on the basis of their subject matter (for example, detective fiction, romance fiction , science fiction, fantasy fiction), or their form and structure (for example poetry, novels, short stories).