Modern mass media significantly influence the perception of certain social groups. Journalistic standards require adherence to the principle of language tolerance, avoid words and expressions that contribute to the formation of negative stereotypes. In this context, the study of age names used in the media is relevant. This aspect of research on language tolerance is not in the focus of special interest of researchers, in particular, given the deep rootedness of names with pejorative semes in everyday vocabulary in various fields, so speakers do not think about the meaning of tokens.
Described is the algorithm of detecting changes in the ratio of different words to the total number of words in the text which can be used to address the issues of determining the author's style. The problem of comparing text styles works is relevant in both philological and historical studies, as well as in computer science. The use of these comparison methods can improve the quality of classification and text collections management, which is important for search engines and large repositories of text data.