{'fraction_non_alphanumeric': 0.009482129832239242, 'fraction_numerical': 0.0007293946024799417, 'mean_word_length': 5.017543859649122, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
System of Automatic Determination of Ukrainian Text Tone

In the work, the system of determination of the emotional tone of Ukrainian texts based on dictionaries and rules is proposed. The developed software downloads text information in various formats and carries out tokenization and lemmatization procedures using the Python Tokenize UK and pymorphy2 libraries. The obtained array of words in the basic grammatical form was analyzed using tonal dictionaries of the Ukrainian language. A dictionary of synonyms was used to expand the vocabulary. To increase the validity of sentiment analysis, coefficients were used that take into account the various emotional loads of words of different speech parts and their dissimilar impact on the overall assessment of the text tone as well as the action of intensifying or softening adverbs. Using the means of fuzzy modeling for sentiment analysis of texts makes it possible to take into account subjective factors of the expression of human emotions and for the contribution of all emotional categories in the final evaluation of the text tone. A quantitative value of the text tone has been obtained by the method of the center of gravity for one-element sets. Based on the analysis of Ukrainian-language texts, it was found that emotionally significant words have a greater impact on the text tone value of short messages.