This paper presents the proposition that a speech genre as a relatively stable form of mental activity implemented in the text can be considered an object of cognitive modeling. The article contains a review of discourse concepts used in the computer text analysis.