function of a text

Noun
  1. The purpose or role that a written text serves, such as informing, entertaining, or persuading.
    The function of a text is to inform readers about historical events.
synonyms: purpose, role, aim