<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>April</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Models for Effective Categorization and Classification of Texts into Specific Thematic Groups (Using Gender and Criminal Themes as Examples)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nina Khairova</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yevhen Kupriianov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anzhelika Vorzhevitina</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oleksandr Shanidze</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>National Technical University “Kharkiv Polytechnic Institute”</institution>
          ,
          <addr-line>Kyrpychova str. 2, Kharkiv, 61002</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Umeå University, Umeå</institution>
          ,
          <addr-line>901 87</addr-line>
          ,
          <country country="SE">Sweden</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>1</volume>
      <fpage>2</fpage>
      <lpage>13</lpage>
      <abstract>
        <p>An analysis of existing automated methods for text classification, used to develop an effective approach for automated text classification by thematic groups in the context of information related to criminal and gender themes, was conducted. Based on the analysis of classification methods, an algorithm for classifying texts by types of crime and gender was developed, information-linguistic and software for the task of distributing texts into thematic groups were developed, and the effectiveness of the developed application was assessed.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Classification</kwd>
        <kwd>categorization</kwd>
        <kwd>thematic groups</kwd>
        <kwd>criminal justice theme</kwd>
        <kwd>gender stereotypes</kwd>
        <kwd>social practices</kwd>
        <kwd>gender criminology1</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Gender issues have long gone beyond the limits of only sociological science and today can be
considered in the aspect of various scientific practices. Science studies the relationship between
modern social practices among gender individuals and the historical context that has led to the
emergence of certain gender stereotypes, gender discrimination, or gender inclusion. Legal and
political sciences explore the practical, legislative aspect of attitudes towards a gendered society.
However, one of the promising vectors in the direction of gender issues is research based on
linguistic, language, and other scientific [16-19].</p>
      <p>From sociology, it is known that gender is the social sex of a person, at least within the
framework of modernist thinking of scholars. Modern gender studies and perspectives on this
issue suggest that gender is the personal state of a person's identity, which consists not only in
the free choice of one's preferences, but also in applying to social practices - subjectivity on the
part of each participant in such practices. Almost from birth, gender stereotypes are imposed on
us, which can not only affect the quality of a person's life (in a negative way), but also become the
cause of criminal offenses. Of course, there is no direct path from ”girls wear pink” to perceiving
domestic violence as a norm. However, most often domestic violence is precisely the result of
stereotypical endowment of a man with “strength”, “patriarchy”. However, not only “domestic
violence” is part of gender discrimination, which can lead to involvement in criminal records.</p>
      <p>The aim of the research is to create an effective approach to automated classification of texts
into thematic groups in the context of information related to criminal and gender themes. At the
same time, urgent tasks arise: researching automated methods of text classification, developing
an algorithm for classifying texts by types of crime and gender, creating information-linguistic
and software provisions for distributing texts into thematic groups, and evaluating the
effectiveness of the effectiveness of the developed application.</p>
      <p>The object of the research is the methods of classifying texts related to gender and crime.
The subject of the research is the methods of categorization and classification of texts.</p>
      <p>The article provides a detailed overview of the subject area and formulation of the research
task. Methods for developing thematic classification of texts are considered.
Informationlinguistic and software provisions tasks are described. An analysis and evaluation of the obtained
results are conducted.</p>
      <p>The theoretical significance of this work lies in the search for methods and approaches of the
classification of texts based on machine learning methods, which could potentially be used to
address a range of tasks in the fields of sociology and law.</p>
      <p>The practical value is that the texts classification model in real conditions can allow studying
the behavior of the classification algorithm and correct possible errors. Researches results can be
a useful tool for criminal police departments, investigative and operational units and human
rights organizations, due to a better understanding of the structure and characteristics of criminal
activity, and a reduction in the level of criminal cases.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Methods of text classification</title>
      <p>The modern approaches to automatic text categorization involve the use of various methods and
algorithms to automatically classify textual data according to their themes in order to
systematize, organize, and facilitate access to large volumes of information to improve the
processes of information analysis and retrieval [6]. The distribution of texts by thematic groups
allows you to effectively organize texts by various categories, facilitating the process of searching
and gathering information, contributes to improving the quality of the results of analytical
research, and makes calculations more accurate and meaningful. Methods of text classification
based on rules, machine learning, and deep learning are used to group textual data into different
categories based on predefined criteria.</p>
      <p>In comparison to rule-based classification, machine learning and deep learning methods are
more effective for categorizing texts into thematic groups, as they can automatically identify
complex dependencies and patterns in data, allowing for more accurate distribution of textual
documents into thematic groups in areas with a large amount of data. Consequently, machine
learning and deep learning methods are typically more powerful and efficient for text
classification into thematic groups in area with a large amount of data.</p>
      <p>Considered modern methods and algorithms of classification based on machine learning for
the distribution of texts by thematic groups include the Naive Bayes classifier, Support Vector
Machine, neural networks, decision trees, k-Nearest Neighbors Algorithm, Vector Space Model
and others. These methods allow for the effective distribution of texts into thematic groups,
facilitating the detection and analysis of various aspects within the researched domain.</p>
      <p>An analysis of existing classification methods has shown that machine learning based methods
are superior for text classification for several reasons. Firstly, these methods have high flexibility
and ability to learn on large volumes of data. Secondly, they uncover hidden and complex patterns
and relationships between textual data, which is crucial for accurate text classification. Thirdly,
they can consider numerous features and relationships among them, such as linguistic
characteristics, semantic context, and contextual relationships, which helps improve the accuracy
of classification within thematic groups.</p>
      <p>For example, the naive Bayes classifier is suitable for classification tasks with large volumes of
data, where speed of operation and ease of implementation are of great importance. The
classification method using neural networks is a powerful machine learning tool that has a
number of advantages and features for working with diverse data and can provide high accuracy
and adaptability in classification tasks. The vector space model is a powerful tool for analyzing
textual information, especially in cases where accounting for semantic relationships and working
with large volumes of text is needed [10]. The choice of classification method depends on the type
of data, the volume and diversity of the data, computational resources, and the required
interpretation of the results.</p>
      <p>The problem of distributing texts into thematic groups is relevant in today's information
world. Processing a large volume and variety of topics complicates the task. Multilingualism also
complicates the analysis and classification of text due to syntactic, semantic, and cultural
differences between languages. The development of new methods and algorithms, including the
application of Text Mining methods, can help to address these issues, particularly in the context
of criminal themes and gender issues, where automatic classification and analysis of texts can
increase the efficiency and speed of making informed decisions based on these data [2, 17].</p>
      <p>Methods for determining semantic proximity are important in the modern context of text
analysis and categorization into thematic groups. The development of such methods allows for
improving the accuracy and efficiency of systems, simplifying the work of sociologists, law
enforcement agencies, and other stakeholders. There are several methods for determining
semantic proximity, which are based on statistical analysis methods and linguistic methods and
rules. The methods of determining semantic proximity, which are based on methods of statistical
analysis, include:
1. Vector models of words
2. Using vector representations of words
3. Matrices of relationships between words
4. Machine learning methods for determining the proximity of words</p>
      <p>The methods for determining semantic proximity based on linguistic methods, rules, and
dependencies include:
1. Use of semantic roles and syntactic structure
2. Comparison of dependencies and relations between words
3. Analysis of semantic components of sentences</p>
      <p>Each of these methods has its own characteristics, and the choice of method depends on the
task setting and context, available data, and the context of application [9, 14, 18]. In practical
applications, statistical methods are often used where large volumes of data are available, such
as machine translation, speech recognition, or text analytics. Linguistic methods can be useful in
cases where the focus is on accuracy and understanding complex semantics, such as named entity
recognition, information extraction, or in the field of deep semantic analysis.</p>
      <p>The tasks of text analysis include identifying keywords, extracting information, classifying
texts into categories, automatic translation, etc. For the effective performance of these tasks,
reliable methods of determining text features are needed to take into account semantic and
statistical information. Realization of the relevance of text analysis tasks and the need for accurate
and informative methods of extracting features from textual data emphasizes the importance of
research and development of models, such as the vector space model, for solving these tasks.</p>
      <p>The vector space model is a way of representing text as numerical vectors, where each word
is represented as a vector according to its meaning in the context of the text. This approach allows
measuring the semantic similarity between different textual documents. Once the text is
transformed into vectors, various data analysis methods can be applied, such as clustering,
classification, or determining the similarity of textual documents. The vector space model is
applied in information retrieval systems to effectively determine similarity between users
queries and documents [3, 7, 15].</p>
      <p>
        The cosine similarity measures the similarity between two vectors in a multi-dimensional
space and expresses the similarity of their directions by determining the cosine of the angle
between them, taking values from -1 to 1, providing a clear understanding of the degree of
semantic closeness. The closer the cosine similarity values are to 1, the more semantically similar
the textual fragments are. The equation for calculating the cosine similarity between two vectors
A and B is defined as the ratio of their dot product to the product of their lengths in the equation
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
 ∗
      </p>
      <p>,
=</p>
      <p>
        ( ) =

(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
  =
‖ ‖‖ ‖
where A * B is the dot product of vectors A and B; cos(θ) is the cosine of the angle between
vectors A and B; ||A|| is the length of vector A; ||B|| is the length of vector B.
      </p>
      <p>The main advantages of using the cosine similarity metric compared to other semantic
proximity metrics is that it is robust to scaling. This means that the determination of angular
similarity between vectors is not dependent on their length or scale, making cosine similarity a
convenient and effective method for comparing vectors of different lengths or scales.
Furthermore, cosine similarity is widely utilized in the field of natural language processing, text
classification, and data analysis [5, 12]. Thematic proximity is defined as the degree of semantic
similarity between textual documents or text fragments directed towards mainly a specific
theme, concept, or field of knowledge.</p>
      <p>Stages of determining narrowly thematic closeness by cosine similarity:
1. Representation of texts in vector form
2. Measuring the cosine similarity
3. Comparing cosine similarity results</p>
      <p>
        Representation of texts in vector form. Term frequency (TF) measures how often a term
occurs in a document. This is calculated in equation (
        <xref ref-type="bibr" rid="ref2">2</xref>
        ).
      </p>
      <p>
        ( ℎ     ℎ      ℎ  (
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
      </p>
      <p>( ℎ       ℎ  )
where TF is term frequency; t is the term occurring in the document.</p>
      <p>
        Inverse Document Frequency (IDF) measures how unique a term is across the entire
document corpus. This is calculated in equation (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ).
      </p>
      <p>
        log( ℎ      ℎ  ) (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
( ℎ      ℎ   )
where IDF is Inverse Document Frequency; t is the term occurring in the document.
      </p>
      <p>TF-IDF vector. Each word in the document can be represented by a vector, where each
component corresponds to the TF-IDF value for the respective term. This allows for comparison
of documents based on their content and used for further analytical tasks. Therefore, TF-IDF is
used to highlight important words in the text and construct a vector representation of documents
for further analysis.</p>
      <p>
        Measuring the cosine similarity between vectors of texts begins with the preparation stage.
Two vectors, A and B, representing the texts to be compared, need to be prepared. The calculation
)
,
of the dot product in equation (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ). For this, each component of vector A is multiplied by the
corresponding component of vector B. This gives us the numerator of the equation for cosine
similarity as per equation (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
where A and B are vectors.
      </p>
      <p>
        Calculation of vector norms. We calculate the Euclidean norm (length) of vector A and vector
B. The vector's norm is calculated as the square root of the sum of the squares of its components
in equation (
        <xref ref-type="bibr" rid="ref5">5</xref>
        ). This will give us the denominator of the equation for cosine similarity as per
equation (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
      </p>
      <p>
        = ‖ ‖‖ ‖, (
        <xref ref-type="bibr" rid="ref5">5</xref>
        )
where ||A|| is the length of vector A; ||B|| is the length of vector B.
      </p>
      <p>
        Calculation of cosine similarity. Divide the dot product of vectors A and B by the product of
their norms, which gives us the cosine value of the angle between these vectors, see formula (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ).
Evaluation of cosine similarity. The result of the calculation will be a value ranging from -1 to 1.
A value of 1 indicates similarity, 0 indicates no similarity, and -1 indicates complete dissimilarity
between the vectors. This step-by-step calculation provides an assessment of the degree of
semantic similarity between texts based on the cosine angle between their vector
representations.
      </p>
      <p>Comparing cosine similarity results. After calculating the cosine similarity for each pair of
texts, we obtain numerical values reflecting the degree of their semantic similarity.</p>
      <p>The TF-IDF vectorization allows for the identification of important terms in a text and the
construction of a vector representation of documents, taking into account their significance for
analysis. This makes it a valuable tool for detecting and summarizing essential information from
textual documents. Overall, the algorithm for representing texts in vector form, followed by the
calculation of cosine similarity and comparison of results, allows for the effective assessment of
thematic similarity of texts. It is believed that in future research, the prospects of using cosine
similarity include refining methods of text vectorization, developing combined models that utilize
cosine similarity in combination with other methods to improve the overall accuracy of text data
analysis.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Information-linguistic and software provisions</title>
      <p>In order to develop informational and linguistic support for the task of distributing texts based
on thematic directions, specifically in the areas of criminal themes and gender issues, the
integrated development environment Sublime Text was chosen, in which the previously created
dictionary with vocabulary on criminal topics, which included gender crimes, was improved. The
created dictionary contained structured vocabulary, namely: nouns, adjectives, verbs. Vocabulary
on criminal topics was provided in Ukrainian, in English languages. Improving the dictionary,
phrasal verbs and stable expressions were added to the existing vocabulary. Additionally, another
foreign language, French, was incorporated to present the existing vocabulary in the dictionary.
Structure of an XML article for a single lexical item with the annotation “phrasal verb” presented
in three languages.</p>
      <p>The first line is the parent element of a block for all other child elements, with the &lt;term&gt; tag
and an “id” attribute containing the ordinal number of the phrasal verb. The second line has a
&lt;lemma&gt; tag with the lang=”ua” parameter, which represents the base form of the phrasal verb
in the Ukrainian language. The third line contains the &lt;domain&gt; tag, which denotes the narrow
thematic group to which the lexical unit of the phrasal verb related to criminal theme is assigned,
as shown in Figure 1 [1].</p>
      <p>The fourth line has an &lt;example&gt; tag with the lang=”ua” parameter - an example sentence
using the phrasal verb in the Ukrainian language. The fifth line has a &lt;lemma&gt; tag with the
lang=”en” parameter - the base form of the phrasal verb in English. The sixth line has an
&lt;example&gt; tag with the lang=”en” parameter - an example sentence using the specified phrasal
verb in English. The seventh line has a &lt;lemma&gt; tag with the lang=”fr” parameter - the base form
of the phrasal verb in French. The eighth line has an &lt;example&gt; tag with the lang=”fr” parameter
- an example sentence using the phrasal verb in French. The ninth line closes the tag of the first
line with the tag &lt;/term&gt;.</p>
      <p>The XML structure of an article for a lexical unit marked as “stable expression”, presented in
three languages, bears a significant resemblance to the XML structure for a lexical unit marked as
“phrasal verb”, but still has its own specific features.</p>
      <p>Type of element &lt;term&gt;. The first line – the &lt;term&gt; tag and the “id” attribute representing the
ordinal number of the stable expression. The second line – the &lt;domain&gt; tag, indicating the
narrow thematic group to which the lexical unit of the stable expression related to criminal
themes belongs. The third line – the &lt;lemma&gt; tag with the lang=”ua” parameter, representing the
base form of the stable expression in the Ukrainian language. The fourth line – the &lt;definition&gt;
tag with the lang=”ua” parameter, denotes the definition of the stable expression in Ukrainian.
The fifth line – the &lt;example&gt; tag with the lang=”ua” parameter, provides a sentence in Ukrainian
illustrating the use of the stable expression. The sixth line – the &lt;lemma&gt; tag with the lang=”en”
parameter, representing the base form of the stable expression in English. The seventh line – the
&lt;definition&gt; tag with the lang=”en” parameter, denotes the definition of the stable expression in
English. The eighth line – the &lt;example&gt; tag with the lang=”en” parameter, provides a sentence
in English illustrating the use of the stable expression. The ninth line – the &lt;lemma&gt; tag with the
lang=”fr” parameter, representing the base form of the stable expression in French. The tenth line
– the &lt;definition&gt; tag with the lang=”fr” parameter, denotes the definition of the stable
expression in French. The eleventh line – the &lt;example&gt; tag with the lang=”fr” parameter,
provides a sentence in French illustrating the use of the stable expression. The twelfth line has a
closing tag for the first line with the tag &lt;/term&gt;.</p>
      <p>In order to develop the software code that performs texts distribution by types of criminality
based on user queries where the user searches for texts based on words related to criminal
themes, a wide range of libraries, modules, and functions were used, including tkinter, ttk,
scrolledtext, messagebox, pandas, pip, BeautifulSoup, TfidfVectorizer, cosine similarity, lxml,
openpyxl, and numpy. These libraries are used for various tasks, such as creating GUI, working
with structured data, web page parsing, text vectorization, calculating similarity between
documents, and much more.</p>
      <p>Next, we create the “main_choice” function, which reads data from the Excel file “Criminal
Corpus.xlsx”, containing information about criminal texts, and reads data from the XML file
“new_voc_tagged_summer_2023.fr.xml”, containing a lexical dictionary. This function performs a
search for lexical terms and their corresponding domains for the selected language. After that,
the “main_choice” function returns the text corpus “corpus” and the dictionary
“word_domain_dict”, where the keys are words and the values are their corresponding domains.</p>
      <p>The function “on_word_entry_changed(event)” is an event handler used to respond to changes
in the “word_entry” input field. When the text in this field changes, the function is triggered,
retrieves the text, and converts it to lowercase. It retrieves the language selected by the user from
the “combo_lang” combo box. It then calls the “main_choice(lang)” function, which selects the
corresponding corpus of texts and dictionary of domain words. This function is linked to the
“find_texts()” function, which is called when the “Find Similar Texts” button is pressed and uses
the currents words and language to find similar texts and their domains.</p>
      <p>The next function is “find_texts()”, which searches for similar texts based on the words entered
by the user. It uses the “main_choice(lang)” function to load the corpus of texts in the selected
language - Ukrainian, English, French, and dictionary of domain words for each of these
languages. It then processes the entered text, identifies its words and their corresponding
domains, and builds TF-IDF vectors for the corpus of texts. After vectorization, the “find_texts()”
function compares the vectors belonging to the user query with the vectors of texts from the
corpus using cosine proximity and obtains a ranked list of the most similar texts.</p>
      <p>Upon receiving the cosine similarity values, it is important to consider that if words from the
dictionary have different “domain”, the cosine similarity is calculated for each word with the text.
This allows for more detailed detection of the semantic relevance of each individual word to each
text. And as a result, for each text, the “domain” that belongs to the word with the largest
coefficient of cosine proximity is displayed.</p>
      <p>In order to make the program user-friendly, the program code was created in the PyCharm
integrated development environment, which represents a graphical user interface (GUI) that uses
the Tkinter library to create the program window and place the interface elements.</p>
      <p>In the modern world, trust in criminal data and their analysis is crucial, therefore, the use of
Python for classifying criminal texts is one of the tools that can help law enforcement effectively
combat crime and ensure public safety. Furthermore, Python offers further possibilities for
improving text classification, including the use of images and location data to enhance hypothesis
testing and establish connections between different types of crimes. All these capabilities
underscore the importance of Python in the development of innovative technologies and their
application in law enforcement. With this programming language, experts will be able to identify
key words and interpret complex criminal patterns, ultimately contributing to safeguarding
public safety.</p>
      <p>The invasion of Ukraine by the Russian Federation violates all possible laws, both de jure and
de facto. Genocide, ecocide, violation of the laws of warfare, violation of any legal norms. It is clear
that gender discrimination is also present in the actions of the aggressor country. In this case, it
becomes relevant to create effective methods of categorization and classification of texts
according to specific thematic groups, to identify narrowly targeted markers that indicate a
criminal offense in the field of gender discrimination, as well as the inclusion of similar crimes or
themes in the corpus of relevant texts.</p>
      <p>So, for example, in the linguistic aspect, applying the analysis of an array of texts, the following
factor will certainly be found: gender issue, used by the aggressor country as a means of
propaganda. Scientific facts and research on gender issues are distorted. Additionally, practical
aspects of gender sociology suffer at the level of undermining equal opportunities for all citizens
of Ukraine, gender-based violence, and discrimination by the aggressor country towards our
citizens.</p>
      <p>The occupying country utilizes gender stereotypes to discredit Ukrainian statehood, the
Ukrainian people, Ukrainian authorities, and defenders of Ukraine. An aggressive (i.e., negative)
feminization of Ukrainian politicians and military personnel is occurring. Even the concept of
“Ukraine” as a metaphysical entity is portrayed for propaganda purposes as a “weak woman”,
when the enemy is depicted through the prism of a “patriarchal man who is always right” [19].</p>
      <p>The user guide, in the context of the application's web interface in the PyCharm environment,
is essential for providing users with the necessary information and guidance for use. User
instructions for using the program for distributing texts by thematic groups on criminal topics:
1. Launch the PyCharm integrated development environment
2. Open the project “criminal_classifier”
3. Run the “main” file of the “criminal_classifier” project
4. The “Text Similarity Analysis” window will open
5. Choose the language for classification. In the “Select language” section, you can select one
of the three available languages: “Ukrainian”, “English”, “French”. For example, select the
language of the query as “Ukrainian”
6. In the “Enter a word” field, enter any number of words related to criminal topics in the
selected language, separated by commas. For example, enter the words “protocol” with the
domain “arrest” according to the dictionary. However, if any of the words are not recognized
by the dictionary or do not belong to the criminal topic, the web interface will display an error
message, as shown in Figure 2</p>
    </sec>
    <sec id="sec-4">
      <title>4. Accuracy of the program</title>
      <p>
        Determining the effectiveness of text classification into thematic groups. Cohen's Kappa metric
is a statistical measure used to assess the degree of agreement between two or more assessors
who classify the same set of objects. It takes into account the randomness of agreement between
assessors, making it a more reliable measure than simple agreement. Cohen's Kappa metric is
determined using a formula that compares the observed agreement between assessors to the
agreement that could be expected by chance. Cohen's Kappa metric is calculated using equation
(
        <xref ref-type="bibr" rid="ref6">6</xref>
        ).
(
        <xref ref-type="bibr" rid="ref6">6</xref>
        )
 =
1 −
      </p>
      <p>Let's generalize Table 2 to the general results presented in Table 3.</p>
      <p>
        1,2 =  ÷ 300, (
        <xref ref-type="bibr" rid="ref7">7</xref>
        )
where accuracy1,2 is the accuracy for experts 1 and 2; true is the number of correctly classified
texts; 300 is the total number of texts for which expert assessment was conducted.
      </p>
      <p>
        To determine the average value between the two experts, it is necessary to calculate the
Accuracyaverage as shown in equation (
        <xref ref-type="bibr" rid="ref8">8</xref>
        ).
      </p>
      <p>
        =  1 ÷  2, (
        <xref ref-type="bibr" rid="ref8">8</xref>
        )
where accuracyaverage is the average accuracy between the two experts; accuracy1,2 is the
accuracy for experts 1 and 2.
      </p>
      <p>For the Ukrainian language:
• For expert 1, accuracy1 = (80 + 95 + 97) / 300 = 272 / 300 = 0.906
• For expert 2, accuracy2 = (82 + 90 + 93) / 300 = 265 / 300 = 0.883
For the English language:
• For expert 1, accuracy1 = (91 + 89 + 91) / 300 = 271 / 300 = 0.903
• For expert 2, accuracy2 = (88 + 92 + 93) / 300 = 273 / 300 = 0.91
Now let's calculate the average percentage of expert assessment for the selected languages.
For the Ukrainian language:
• Accuracyaverage = (0.906 + 0.883) / 2 = 1.809 / 2 = 0.904 = 89.4%
For the English language:
• Accuracyaverage = (0.903 + 0.91) / 2 = 1.793 / 2 = 0.896 = 90.6%</p>
      <p>Thus, based on the expert assessment results of the text classification program, it can be
concluded that the accuracy for the Ukrainian language is 89.4%, and for the English language, it
is 90.6%. Therefore, we have very good results for the program of classifying texts into thematic
groups on criminal gender topics.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>The article analyzed the subject area of the research, namely, reviewed modern approaches to
the automatic distribution of texts according to certain directions, analyzed existing classification
methods, reviewed the problems of thematic classification of texts, reviewed the use of Text
Mining capabilities in the direction of solving problems related to legal and gender topics.
Methods for determining semantic similarity are considered, the use of the Vector Space Model
to determine text features, the use of the cosine similarity metric in tasks of determining semantic
similarity, and an algorithm for determining thematic similarity of texts is described.</p>
      <p>The information and linguistic support for the task of distributing texts by thematic areas has
been improved, a multilingual corpus and DataFrame of news article texts has been created using
parsing methods, software for distributing texts by types of crime and gender features has been
created, using vectorization of texts and user queries and cosine proximity, a web interface has
been created user of the task of distributing texts by thematic directions.</p>
      <p>The choice of programming language and libraries has been justified, and the user's
instructions for using the program for distributing texts by narrowly thematic groups have been
drawn up. Cohen's Kappa metric was used to determine the effectiveness of text classification by
certain groups, the results of which are equal to 0.59 for the Ukrainian language, i.e. “Moderate
agreement”, for the English language it is equal to 0.82, i.e. “Near perfect agreement”. The expert
evaluation of the results of the program was determined, which are equal to 89.4% for Ukrainian
and 90.6% for English, which indicates good results of the program for the distribution of texts
by certain groups. In the future, it is planned to expand the created system, to add new terms,
languages, domains to it. For the web application, it is planned to expand the functionality and
transform the web application from local to online.
[16] Y. Kalagin, O. Shanidze, Hendernyi analiz sotsialnykh praktyk ukrainskykh bizhentsiv 2022
roku, Naukovo-teoretychnyi almanakh Hrani 26.3 (2023) 62–68. doi:10.15421/172349.
[17] Y. Kalagin, O. Shanidze, Instytutsializatsiia sotsialnykh praktyk vnutrishno peremishchenykh
osib v ukraini u 2014–2022 rokakh, Habitus 53 (2023) 26–32.
[18] I. Gruzdo, I. Kyrychenko, G. Tereshchenko, O. Shanidze, Analysis of Models Usability Methods
Used on Design Stage to Increase Site Optimization, in: Proceedings of the 7th International
Conference on Computational Linguistics and Intelligent Systems, COLINS-2023, Kharkiv,
2023, pp. 387–409. URL: https://ceur-ws.org/Vol-3403/paper31.pdf.
[19] DW, Yak propahanda RF atakuie Ukrainu cherez henderni stereotypy, 2023. URL:
https://www.dw.com/uk/ak-propaganda-rf-atakue-ukrainu-cerez-genderni-stereotipi/a64807182.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>N.</given-names>
            <surname>Khairova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Mamyrbayev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Rizun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Razno</surname>
          </string-name>
          ,
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Ybytayeva, A Parallel Corpus-Based Approach to the Crime Event Extraction for Low-Resource Languages</article-title>
          , IEEE
          <volume>11</volume>
          (
          <year>2023</year>
          ). doi:
          <volume>10</volume>
          .1109/ACCESS.
          <year>2023</year>
          .
          <volume>3281680</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <article-title>[2] LinkedIn, AI based Data classification modeling techniques using NLP Classification</article-title>
          ,
          <year>2023</year>
          . URL: https://www.linkedin.com/pulse/ai
          <article-title>-based-data-classification-modeling-techniques.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Bilal</given-names>
            <surname>Abu-Salih</surname>
          </string-name>
          ,
          <article-title>Applying Vector Space Model (VSM) Techniques in Information Retrieval for Arabic Language</article-title>
          ,
          <year>2018</year>
          . URL: https://arxiv.org/ftp/arxiv/papers/1801/
          <year>1801</year>
          .03627.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>B. M.</given-names>
            <surname>Doddagangavadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. N.</given-names>
            <surname>Murthy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Rajpurohit</surname>
          </string-name>
          , Statistical Tool for Testing Agreement Level on Continuous Datasets, Current Research in Biostatistics 11 (
          <year>2021</year>
          )
          <fpage>1</fpage>
          -
          <lpage>11</lpage>
          . doi:
          <volume>10</volume>
          .3844/amjbsp.
          <year>2021</year>
          .
          <volume>1</volume>
          .11.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Medium</surname>
            ,
            <given-names>Cosine</given-names>
          </string-name>
          <string-name>
            <surname>Similarity</surname>
          </string-name>
          ,
          <year>2023</year>
          . URL: https://medium.com/@TheDataScienceProF/cosine-similarity-6cbba097b3db.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>G.</given-names>
            <surname>Bryda</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. P.</given-names>
            <surname>Costa</surname>
          </string-name>
          , Qualitative Research in Digital Era: Innovations, Methodologies and Collaborations,
          <source>Social Sciences 12.10</source>
          (
          <year>2023</year>
          ). doi:
          <volume>10</volume>
          .3390/socsci12100570.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Medium</surname>
          </string-name>
          ,
          <source>Text Processing Techniques on Twitter data</source>
          ,
          <year>2020</year>
          . URL: https://towardsdatascience.com/text-processing
          <article-title>-techniques-on-twitter-data69233296c778.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Marketbrew</surname>
          </string-name>
          ,
          <source>The Impact of Machine Learning on SEO</source>
          ,
          <year>2023</year>
          . URL: https://marketbrew.ai
          <article-title>/the-impact-of-machine-learning-on-seo.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Biggins</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mohammed</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Oakley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Stringer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Stevenson</surname>
          </string-name>
          , J. Priess, University_Of_Sheffield:
          <article-title>Two Approaches to Semantic Text Similarity</article-title>
          ,
          <source>in: Proceedings of the 1th Joint Conference on Lexical and Computational Semantics</source>
          , Montreal,
          <year>2012</year>
          , pp.
          <fpage>655</fpage>
          -
          <lpage>661</lpage>
          . URL: https://aclanthology.org/S12-1097.pdf.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>V.</given-names>
            <surname>Kant Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Kumar</surname>
          </string-name>
          <string-name>
            <surname>Singh</surname>
          </string-name>
          ,
          <article-title>Vector space model: an information retrieval system</article-title>
          ,
          <source>in: Proceedings of BITCON-2015 Innovations For National Developmentational Conference on Information Technology Empowering Digital India</source>
          ,
          <source>International Journal of Advanced Engineering Research and Studies, Durg</source>
          <year>2022</year>
          , pp.
          <fpage>141</fpage>
          -
          <lpage>143</lpage>
          . URL: https://www.researchgate.net/publication/362060638_VECTOR_
          <article-title>SPACE_MODEL_AN_INFO RMATION_RETRIEVAL_SYSTEM.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A. S.</given-names>
            <surname>Kolesnyk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. F.</given-names>
            <surname>Khairova</surname>
          </string-name>
          ,
          <article-title>Justification for the Use of Cohen's Kappa Statistic in Experimental Studies of NLP and Text Mining</article-title>
          ,
          <source>Cybernetics and Systems Analysis</source>
          <volume>58</volume>
          (
          <year>2022</year>
          )
          <fpage>280</fpage>
          -
          <lpage>288</lpage>
          . doi:
          <volume>10</volume>
          .1007/s10559-022-00460-3.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>J.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Dong</surname>
          </string-name>
          ,
          <source>Measurement of Text Similarity: A Survey, Information 11.9</source>
          (
          <year>2020</year>
          )
          <article-title>421</article-title>
          . doi:
          <volume>10</volume>
          .3390/info11090421.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13] University of San Diego,
          <source>The Role of Natural Language Processing in AI</source>
          ,
          <year>2023</year>
          . URL: https://onlinedegrees.sandiego.edu/natural-language
          <string-name>
            <surname>-</surname>
          </string-name>
          processing-overview/.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M.</given-names>
            <surname>Eminagaoglu</surname>
          </string-name>
          ,
          <article-title>A new similarity measure for vector space models in text classification and information retrieval</article-title>
          ,
          <volume>48</volume>
          .4 (
          <year>2022</year>
          )
          <fpage>463</fpage>
          -
          <lpage>476</lpage>
          . doi/10.1177/0165551520968055.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>M.</given-names>
            <surname>Biryukova</surname>
          </string-name>
          , I. Kyrychenko,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shanidze</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Shanidze</surname>
          </string-name>
          ,
          <article-title>Social Computing of the Social Wellbeing of Refugees and Internally Displaced Persons in Ukraine Using Data Mining Methods</article-title>
          ,
          <source>in: Proceedings of the 7th International Conference on Computational Linguistics and Intelligent Systems, COLINS-2023</source>
          , Kharkiv,
          <year>2023</year>
          , pp.
          <fpage>410</fpage>
          -
          <lpage>422</lpage>
          . URL: https://ceurws.org/Vol-
          <volume>3403</volume>
          /paper32.pdf.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>