---
title: "Detecting Toxicity in News Articles: Application to Bulgarian (2019)"
description: "How a Bulgarian news toxicity detector combines article text and publisher information, and what its results reveal about rare categories."
canonical: "https://research.elamur.ai/free/en/papers/dinkov-2019-detecting-toxicity-news-articles-application/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/dinkov-2019-detecting-toxicity-news-articles-application/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Detecting Toxicity in News Articles: Application to Bulgarian

# Detecting Toxicity in News Articles: Application to Bulgarian

Paper · 2019 · Yoan Dinkov, Ivan Koychev and Preslav Nakov

**Authors:** Yoan Dinkov, [Ivan Koychev](https://md.research.elamur.ai/free/en/authors/ivan-koychev/) and [Preslav Nakov](https://md.research.elamur.ai/free/en/authors/preslav-nakov/) · **Year:** 2019 · **Venue:** Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Cited by **5** papers in our library of the 163,136 papers whose bibliographies we read · Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/R19-1029/)
- [PDF](https://aclanthology.org/R19-1029.pdf)
- [DOI 10.26615/978-954-452-056-4_029](https://doi.org/10.26615/978-954-452-056-4_029)

## Summary

A news article can mislead through a false account of events, exaggerate an ordinary occurrence into a sensation, or attack a person or group. These problems call for different judgments, even when they arise in the same story. The authors investigate whether a computer can distinguish several such forms of toxicity in Bulgarian online news. They classify whole articles, using categories that go beyond factual accuracy to include, among others, hate speech, defamation, and pro-authoritarian content. Earlier research, as the authors describe it, concentrated mainly on English and often addressed a narrower problem such as detecting fabricated stories or checking individual claims.

The authors built their dataset from Media Scan, a monitoring project that had spent five years documenting Bulgarian online outlets and manually categorizing problematic stories. They collected 221 articles with toxicity labels and added 96 articles from outlets for which Media Scan had recorded no examples of toxicity. Those additions supplied the non-toxic category. The authors drew information from each article’s headline and body, sometimes using an English translation to access resources unavailable for Bulgarian. They also used publisher characteristics, including whether the outlet listed a chief editor.

With limited training data, the authors fitted separate logistic regression classifiers to different kinds of evidence. The final classifier learned from their estimated class probabilities. This approach let an outlet-based prediction, a prediction from the Bulgarian vocabulary, and a prediction from an English-language text representation contribute to the same decision without putting all of their original measurements into a single input. A representation fitted to the dataset’s own vocabulary gave the strongest individual text results. The combination of predictions performed best overall.

In 5-fold evaluation on the collected articles, the combined system reached 59.0% accuracy and 39.7% macro-F1, compared with 30.3% accuracy and 5.2% macro-F1 for always predicting non-toxic. Macro-F1 gives each category equal weight, so it helps show how uneven the results were. The detector was strongest on the non-toxic category, confused a considerable share of fake news examples with conspiracy articles, and seldom predicted the smallest categories. The experiment shows that the selected signals can recover a substantial share of the recorded judgments, with much weaker coverage of uncommon kinds of toxicity.

## Deep dive: Detecting Toxicity in News Articles: Application to Bulgarian

How a Bulgarian news toxicity detector combines article text and publisher information, and what its results reveal about rare categories. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why classify whole articles?

The paper starts from an editorial problem. Online readers have limited time, while outlets compete for their attention. The authors argue that unusual or sensational presentation can help draw an audience and that this incentive can reward misleading or harmful material. Once such material is in circulation, examining it by hand takes time and expertise. The task they set for [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) is to recognize several forms of problematic coverage at the level at which readers encounter them, in a headline and the story that follows.

Toxicity is a broad term in this study. It includes sensational coverage, which can inflate the significance of an event by shifting the emphasis of the story. It also includes fabricated or deliberately misleading news, where a plausible presentation can conceal distortions of factual details. Conspiracy material can give an elaborate account while offering little confirmed evidence for the claims that hold it together. Hate speech involves attacks on people or groups. The category set also includes pro-authoritarian content, anti-democratic content, delusion, and defamation. The paper gives more explanation for some of these categories than for others, and the labels come from the judgments recorded by Media Scan.

This breadth matters for interpreting the prediction. A factuality judgment asks whether a claim or a story is true. Some of the paper’s labels concern what an article does with facts, whom it targets, or what position it advances. A story could call for more than one of these judgments. The authors explicitly allow the possibility of overlapping toxicity labels in their description of the task. The experiments, in turn, are reported as classification across the named categories. The target is therefore the category scheme used to characterize coverage, with room in the underlying descriptions for more than one characterization.

Articles were a practical unit for the authors because Media Scan documented published pieces. An entry could identify the outlet, classify the article, and in some cases explain the judgment with examples. Sometimes the site recorded an attempt to reach an author about questionable information. This combination gave the researchers access to article-level judgments and the surrounding publishing context. It also meant that the evidence available to the project that assigned the labels could be richer than the text and publisher attributes eventually used by the classifier.

#### How earlier work divided the problem

The authors organize prior research by the object being judged. At the claim level, a system can ask whether a specific statement is supported. At the article level, it can try to characterize a complete piece of coverage. At the user level, it can look for participants engaged in manipulation. At the outlet level, it can try to estimate the reliability of a publisher. These units lead to different collections of examples and different meanings for a successful prediction. Identifying an opinion manipulation troll, for example, concerns the behavior of a participant in a discussion. The paper cites work that approached this problem in news forums. [Finding Opinion Manipulation Trolls in News Community Forums](https://md.research.elamur.ai/free/en/papers/mihaylov-2015-finding-opinion-manipulation-trolls-news/)

In the claim-checking literature reviewed by the authors, reactions on social media can provide evidence about a statement. Web material can also offer relevant accounts or sources. An important question in both settings is stance, meaning whether a response or document agrees or disagrees with the claim. Another is source reliability, meaning how much confidence to place in the person or publication supplying that reaction. The language of the responses, their timing, and other contextual information can contribute as well. The broader field includes methods for defining the verification task and building collections that pair claims with evidence. [Automated Fact Checking](https://md.research.elamur.ai/free/en/papers/thorne-2018-automated-fact-checking-task-formulations/) and [FEVER](https://md.research.elamur.ai/free/en/papers/thorne-2018-fever-large-scale-dataset-fact/)

Stance also appears as a task in its own right. Predicting a document’s position toward a claim supplies one piece of information to a verification process. Accepting the claim as true requires a further judgment about the evidence and the people or outlets presenting it. The paper points to the Fake News Challenge and RumourEval as settings in which stance or support could be studied explicitly. It also notes that stance research had extended to Arabic, even though much of the surrounding literature the authors review was centered on English. [Fake News Challenge stance baseline](https://md.research.elamur.ai/free/en/papers/riedel-2017-simple-but-tough-beat-baseline/) and [RumourEval](https://md.research.elamur.ai/free/en/papers/derczynski-2017-semeval-2017-task-8-rumoureval/)

Source reliability takes the publisher or account as its unit. The paper describes approaches that judge outlets by their positions on claims that have already been checked. In that reasoning, consistent agreement with claims judged true and disagreement with claims judged false provide evidence about a source. A related question is how frequently the source contains false information in the first place. The authors treat outlet information as potentially valuable when examining an article. An estimate about a publisher provides context for the text, while an article-level judgment still concerns the particular piece of coverage. [Predicting Factuality of Reporting and Bias of News Media Sources](https://md.research.elamur.ai/free/en/papers/baly-2018-predicting-factuality-reporting-bias-news/)

That difference affects experimental design. The authors describe earlier work in which all articles from a given website inherited its reliability category. An outlet judgment can provide weak supervision, meaning that it supplies a training label without requiring a separate review of every article. Testing on the same premise makes the result depend on whether the inheritance rule is valid. A classifier might learn to identify material associated with an outlet category, while the labels leave open how accurately it would assess particular articles. The paper points to professionally checked articles as one way earlier research obtained judgments at the document level. [A Stylometric Inquiry into Hyperpartisan and Fake News](https://md.research.elamur.ai/free/en/papers/potthast-2018-stylometric-inquiry-into-hyperpartisan-fake/)

Other work examined the language found in articles from trusted sources and from sources associated with hoaxes, satire, or propaganda. This offers a way to look for recognizable writing patterns even when a system cannot verify the circumstances behind every sentence. The paper notes that such analysis could work at the article level with a limited collection of outlets. The distinction between how material is selected and how it is analyzed remains important. Article-level linguistic features can be extracted even when the collection was organized primarily by what was known about its sources. [Truth of Varying Shades](https://md.research.elamur.ai/free/en/papers/rashkin-2017-truth-varying-shades-analyzing-language/)

#### Why the headline gets its own representation

The headline has a special place in the paper’s account of earlier research. It can carry the article’s main appeal to a reader who goes no further. The body has room to repeat a point, elaborate details, or explain something the headline makes dramatic. The authors cite work by Horne and Adali that compared real news, fake news, and satire and found similarities between the latter categories along several dimensions. That work also reported differences between misleading headlines and the bodies beneath them, including more information packed into headlines and simpler or more repetitive writing in bodies.

The Bulgarian detector inherits the design decision to represent those article parts separately. A capitalized word in the headline, for instance, is counted in a different place from a capitalized word in the body. Similarly, a representation of the body is allowed to retain more vocabulary detail than a representation of the much shorter headline. The study also draws on later feature engineering in the same line of earlier research, where style was characterized alongside sentiment, readability, topic, and other properties. These measurements give the classifier several descriptions of the same article and keep their locations visible.

The authors identify one earlier Bulgarian study of toxicity-related coverage, a detector for fake news and clickbait using material assembled through a hackathon. Their starting point is different in both collection and scope. Media Scan supplied observations accumulated during monitoring, and its categories span misleading content, political positioning, attacks, and other forms of coverage. Bulgarian is the language of the articles and the target of the classification. English enters because some analytical resources are available only for it or are stronger in it. That setup makes the usefulness of translation an empirical question within the study.

### The method, step by step

#### From a Media Scan entry to an article record

Media Scan maintained information on 700 outlets, 150 of which were linked to at least one article it had categorized as toxic. The outlets included digital newspapers, media groups, and blogs. The authors used the site’s article entries to locate examples and obtain labels. A typical record for their experiment needed the text readers could see, the recorded toxicity judgment, and the identity of the publisher so that outlet characteristics could be attached.

Recovering the text was a separate task from finding a labeled link. The paper explains that publishers sometimes removed a story after Media Scan brought the issue to their attention. Media Scan could preserve an older version in PDF form when the webpage was inaccessible. The authors used the HTML pages that were still available and had remained unchanged at collection time. This choice tied the trainable record to a recoverable web article and left the preserved PDFs for possible later use.

A web crawler extracted the contents of the remaining pages. Websites organized their HTML differently, and the extraction procedure depended on having structure it could recognize. The authors checked the recovered material manually, repaired problems they found, and supplied missing information. This step matters because the next stage treats the headline and body as distinct inputs. A page parsing error can change word counts, confuse the two fields, or insert material that was never part of the story. The manual work dealt with extraction quality using the article record available to the authors.

Media Scan’s flagged pieces supplied the toxic examples. The authors assembled the comparison category by fetching articles from outlets that had no toxicity examples recorded by the project. They added 96 articles from 25 outlets this way. The two routes give the final class a particular meaning. A flagged piece appears in the corpus through a recorded judgment about that story. An article in the comparison group appears through the historical status of its outlet in Media Scan. The published evaluation treats the resulting categories as the targets to predict.

#### Separate views of the same story

Every article supplied a headline and a body. The authors retained the Bulgarian text and obtained an English version with the Google Translate API. Some feature sets used the original. Others used the translation, which enabled access to English-oriented text encoders and linguistic resources. For the experiment, the translation gave another view of the same labeled article. Its category continued to come from the Bulgarian collection.

A feature is a numerical description a classifier can use. A count of upper-case characters is a feature with a direct interpretation. A coordinate in a text vector is also a feature, although its meaning may depend on many words and the procedure that produced it. The authors tried both sorts of description, together with measurements of the publisher. They could therefore examine classifiers that differed in what they were allowed to see, then combine the conclusions those classifiers reached.

From Bulgarian news articles to toxicity predictions The steps in order.

#### A vocabulary representation learned from the collection

Latent semantic analysis, or LSA, begins with a vocabulary-based description of each piece of text. The authors formed separate vectors for headlines and bodies using term frequency and inverse document frequency. Term frequency represents how much a word occurs in the particular text. Inverse document frequency gives more influence to terms that are less widespread across the texts used to build the representation. The outcome is a weighted vocabulary description. A headline and a body can therefore receive different vectors even when they concern the same event. [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/)

Singular value decomposition then reduces those vocabulary vectors to a smaller collection of numerical coordinates. It finds directions in the weighted data that capture patterns shared across documents. A coordinate can summarize variation involving several words, so the classifier receives a condensed view of vocabulary use. This is useful for understanding what the experiment tests. The words and co-occurrences that shape these directions come from the collection used for LSA. Their relevance comes from the vocabulary of the problem at hand. [Latent semantic indexing](https://md.research.elamur.ai/free/en/concepts/latent-semantic-indexing/)

The authors kept 15 dimensions for headlines and 200 for bodies. A dimension is a coordinate in the numerical representation. The separate sizes allow the longer text to retain a richer vocabulary description. The distinction carries through to the logistic regression stage, where the classifier can associate a feature with the part of the article it came from. The paper identifies LSA as a representation trained locally on the data. Its account leaves open how the vocabulary weighting and decomposition were fitted relative to the outer evaluation folds, a detail that matters when interpreting the reported performance.

#### Representations brought in from other tasks and languages

The authors also used a pretrained contextual encoder that represents a passage as a vector of 768 values. They obtained those vectors through BERT-as-a-service and describe using a cased multilingual checkpoint. Casing preserves distinctions between upper-case and lower-case forms. This matters for a study that also treats capitalization as potentially informative in its own right. Only the first 512 tokens of a headline or body were used to create its representation. A token is one of the units the encoder reads, which can differ from a word as counted in the descriptive statistics. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/)

The authors tried different pooling strategies. Pooling turns the encoder’s outputs for an input sequence into a vector of fixed size. For headlines they chose REDUCE MAX, which takes the largest value along each coordinate across the positions being pooled. For bodies they used CLS TOKEN, the representation at the special classification position. These strategies give different summaries of the passage. Max pooling can preserve a strong value that appears at a particular position. The classification position provides the vector associated with that designated token. The language comparison later in the paper describes the same choice of pooling on the original and translated text.

XLM furnished another cross-lingual representation. Like BERT, it uses a Transformer architecture, and the authors describe pretraining that covers 15 languages, including Bulgarian and English. The version they used had been adapted to cross-lingual natural language inference, which concerns relationships between statements. In this experiment, its job was to represent news text. The headline and body each received a vector that Table 2 lists as 1,024 dimensions. The features passed to the toxicity classifier were these text vectors. [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) and [Fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/)

The Universal Sentence Encoder provided an additional way to turn translated text into a passage vector. The version used in the study was available for English, so the authors supplied the translated headlines and bodies. They passed the first 300 tokens of each part and obtained 512-dimensional vectors. A long body could consequently be represented from an opening segment. This input rule belongs to the particular encoder and is distinct from the article-wide counts that can be calculated as soon as the full body has been recovered. [Universal Sentence Encoder](https://md.research.elamur.ai/free/en/papers/cer-2018-universal-sentence-encoder/)

ELMo supplied contextual representations for the translated text. Its underlying pretraining predicts language in both directions, so context can influence the representation of a word. The authors applied it separately to headlines and article bodies. Each resulting vector appears as 1,024 dimensions in the feature inventory. The main classifier consumes these vectors as another numerical description of the article. In all these pretrained approaches, the learned toxicity decision belongs to the classifier fitted to the Bulgarian collection. The encoders contribute representations acquired from other training tasks. [Deep Contextualized Word Representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/)

The dimensionality of a vector and the amount of article text it represents are separate properties. A long feature vector can come from processing only an opening segment. A compact vector can describe statistics computed across the whole body. Those differences shape what kinds of information each classifier can use. They also explain why simply putting two feature sets side by side does not guarantee that they supply two independent sources of evidence. Different encoders may capture related properties from the same words, while a character count or publisher attribute supplies a measurement of another kind.

#### Measurements of style and language

The stylometric features describe how the text is written. For both headline and body, the authors counted words, characters, special characters, upper-case characters, and words that start with a capital letter. They also measured average word length. For the body, they added the number of sentences and average sentence length, measured in both characters and words. The method thus keeps length, capitalization, and punctuation-like signals available in forms that can be inspected directly.

These counts help a classifier use clues that a representation based mainly on contextual word meaning might capture differently. Consider the difference between the total number of upper-case characters and the number of words that begin with a capital. An all-capital word affects the first count across several characters while contributing only one item to the second count. Applying those measurements separately to the headline and body preserves where the typographic emphasis occurs. That location can matter in the authors’ account of how headlines are used to attract attention.

For another view of style and language, the authors used the NELA toolkit on the English translations. It supplied 129 features for each article part. Some concern structure, including function words, pronouns, and [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/). Others concern sentiment, using lexical scores and a fuller sentiment system. There are features related to readability, vocabulary variety, and words that express cognitive processes such as insight or certainty. The toolkit also supplies measurements intended to capture topic, engagement, subjectivity, and moral language. [Sentiment and emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) and [Type–token ratio](https://md.research.elamur.ai/free/en/concepts/type-token-ratio/)

A lexicon-based feature compresses a text according to which words from an existing list it contains. A science-related list and a personal-concerns list, for example, can yield scores that vary with the subject matter of a story. Other lists and linguistic indicators target properties such as subjectivity or bias. These variables are inputs to the toxicity classifier. Their values describe the translated text under the toolkit’s definitions. The logistic regression then learns how those measurements relate to the recorded categories in this dataset. The paper connects the bias features to earlier research on the language of biased writing. [Linguistic Models for Analyzing and Detecting Biased Language](https://md.research.elamur.ai/free/en/papers/recasens-2013-linguistic-models-analyzing-detecting-biased/)

#### What the classifier knows about the publisher

The publisher features describe an outlet instead of any individual passage. Four are binary indicators. They record whether the outlet identifies a chief editor, whether it lists a responsible person, whether its server is in Bulgaria, and whether it has a designated domain owner. An affirmative entry receives 1 and a negative entry receives 0. These features give the classifier observations about the publisher’s organization and infrastructure.

The other publisher measures concern traffic ranking and age. The paper gives the rule for popularity as the reciprocal of the outlet’s Alexa rank. In compact notation, that transformation is:

```
P = 1 ÷ r
```

Here P is the popularity feature and r is the outlet’s rank on Alexa. The equals sign expresses how the feature is calculated, and ÷ denotes division. A smaller rank number yields a larger value. This converts the direction of the ranking into a feature whose larger values indicate greater popularity according to that ranking.

For age, the authors counted days from the outlet’s creation to 01.01.2019 and took the logarithm:

```
A = log(d)
```

Here A is the age feature and d is the number of elapsed days. The equals sign defines the feature. The function log takes the logarithm of its argument, and the parentheses enclose that argument. The paper illustrates the transformation with an outlet created in January 2005. Its age of 5,113 days becomes 3.70 in the representation. The transformation compresses the range of raw day counts before the value goes into the classifier.

An outlet’s age, editor status, and other publisher attributes can recur across several stories. The input is consequently capable of expressing that two stories come from outlets with similar characteristics even if their words differ. Its role in this design is to add context with a small set of measurements. The labels the classifier is trained to predict still belong to the article records.

#### Learning from probabilities

The authors used logistic regression as their main classifier. In this setting, it learns weights for numerical inputs and uses them to estimate probabilities for the article categories. A word-pattern vector, a description of style, and a description of the publisher can each support a separate classifier. The comparison includes individual representations, combinations of their original features, and a final classifier that receives probabilities from selected individual classifiers.

These ways of joining evidence operate at different stages. With direct feature combination, the classifier sees the coordinates of the text representations and the other measurements together. It must learn which coordinates are useful given the available training articles. In the final system, each individual classifier has already turned its features into a set of category estimates. The next classifier receives those estimates. The main decision at that stage is how much weight to give the first set of predictions in light of the others.

For example, the classifier using Bulgarian vocabulary can express stronger support for a class even when the publisher classifier is uncertain. That uncertainty can be communicated because the next stage receives probabilities instead of a single chosen label from each classifier. Two classifiers can also nominate the same class with different levels of confidence. The final logistic classifier can use those differences when it learns a combined prediction from the training data. These are possibilities of the architecture. The paper reports its overall performance and does not trace those hypothetical cases to particular articles.

Obtaining the probability inputs requires care. If an individual classifier has already learned from an article and its label, its prediction for that article may have a different quality from its prediction for unseen material. Training the next stage on such predictions can let information about the target reach it through the earlier stage. The authors explicitly say they avoided label leakage when constructing the training inputs to the final classifier. They describe the use of posterior probabilities from selected individual runs, meaning the class probabilities estimated after taking the article’s features into account. The paper gives the source runs for these inputs but offers less detail about the split bookkeeping for stacking than about the cross-validation used for logistic regression tuning.

The evaluation used 5-fold cross-validation. Each outer fold in such an evaluation is a held-out portion of the data, and its prediction comes from a fitting process carried out on the remaining portions. The article records serve as test examples in their turn. Within the training portion of each outer fold, the authors used another cross-validation to tune the logistic regression for the individual experimental settings. The inner procedure selects settings using training data, while the outer fold assesses the resulting fit on held-out records. The authors report 15,000 additional experiments for that tuning process.

The paper announces a public GitHub repository containing the experiment code and notes on reproducing the environment. It also describes releasing the dataset there, including article text, translations, generated features, and accompanying metadata. Those materials correspond to different parts of the workflow, from the collected article record through its numerical representations.

### Experiments and results

#### The collection used for evaluation

The dataset contains 221 articles in the toxic portion and 96 in the non-toxic portion, drawn from 164 outlets overall. The headlines average 70.47 characters and 11.08 words. The bodies average 3,613.70 characters, 556.83 words, and 31.64 sentences. These are descriptive statistics for the collected articles. They make clear why a headline and a body present different representation problems. The headline is typically a short piece of text, whereas the body extends across many more words and sentences. Token limits on contextual encoders affect how much of that body can contribute to the vector.

The category distribution was uneven. Non-toxic was the largest single class. The authors identify fake news and conspiracy as the next largest and report that the three smallest categories together account for less than 18% of the dataset. These frequencies affect what the training procedure can learn and the way performance appears in the metrics. More examples of a label give a classifier more opportunities to learn patterns associated with that label. A metric that weights every article equally also gives more of its total weight to the classes with more examples.

The non-toxic class accounted for 30.30% of the dataset according to the experimental setup. The authors used a baseline that always predicts this class. It is a reference for the benefit of using text or publisher information because it makes the same prediction for every article. It can be right whenever the target is non-toxic and cannot recover the distinctions among the toxic categories. The paper’s headline results report its accuracy as 30.3%.

#### Why the authors use both accuracy and macro-F1

Accuracy gives the share of predictions counted as correct. It addresses how frequently the system made the expected choice over the articles evaluated. Macro-F1 begins with a separate score for each category. To understand it, consider the label fake news. Precision asks how many of the articles predicted to be fake news were recorded under that label. Recall asks how many of the articles recorded as fake news the system recovered. The F1 score combines those two quantities through their harmonic mean, which gives a low value when either quantity is low.

Macro-F1 averages the category scores with equal weight. A common class therefore has the same influence on macro-F1 as a rare class does. An always-non-toxic baseline can still obtain credit for that category, since it does retrieve the non-toxic examples, but its lack of useful predictions for the other categories keeps its macro-F1 low. The difference in what the metrics count is especially pertinent here because the study aims to distinguish kinds of toxic content under uneven label frequencies. [Evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

#### The comparison with the majority baseline

The logistic classifier trained on other classifiers’ probabilities gave the best reported result in the 5-fold evaluation. Its accuracy was 59.0%, and its macro-F1 was 39.7%. The majority baseline achieved 30.3% accuracy and 5.2% macro-F1. These comparisons concern the same corpus and its recorded labels. The higher macro-F1 shows that the system achieved useful category-specific performance beyond its results on the largest class, while the later confusion analysis shows that this improvement was concentrated unevenly among the classes.

Bulgarian news toxicity classification by cross-validated accuracy The classifier combining probability outputs is more accurate than the majority baseline.

**The numbers**

| System or setting | Accuracy % |
| --- | --- |
| Always predict non-toxic | 30.3 |
| Combined logistic classifier (this paper) | 59.0 |

Bulgarian news toxicity classification by cross-validated macro-F1 Combining the probability outputs improves the score that weights each category equally.

**The numbers**

| System or setting | Macro-F1 % |
| --- | --- |
| Always predict non-toxic | 5.2 |
| Combined logistic classifier (this paper) | 39.7 |

The paper reports a 3.5% absolute accuracy gain for the combined classifier over the strongest individual result. This is a different comparison from the one against the majority baseline. It concerns the benefit of adding a stage that learns from the probability estimates of classifiers which already use informative inputs. The accuracy gain establishes that this combination improved the aggregate result among the configurations the authors tried. The published category analysis gives more detail about which labels still posed a problem.

#### What the intermediate comparisons establish

The paper reports a total of 14 setups, including the majority baseline and the final classifier. Some work with the original Bulgarian text. Others use the English translation. Publisher information can be evaluated alone, and the authors also test direct combinations of raw features. These settings distinguish several questions: which individual text representation works well on this corpus, how much can be predicted from the publisher, and at what stage does joining the feature families help?

LSA was the strongest individual text representation according to the authors’ comparison. It came from local vocabulary statistics, then reduced those statistics to vectors of manageable size. BERT also performed well with the Bulgarian original and with the English translation. In the language comparison, the authors report an absolute improvement of close to 4.5% when using the English translation for BERT under the same pooling choices. This result pertains to the paired BERT configurations and their reported comparison on the study corpus. It gives a concrete instance in which resources applied through translation were helpful.

Publisher information alone also carried predictive signal. For the classifier using the 6 publisher features, the authors describe a 12% improvement over the baseline. The discussion of that comparison does not specify the metric or clarify the convention used for the improvement, so the figure is most safely read in the form reported. The result establishes the direction of the comparison and shows why the publisher classifier was among the useful inputs to the combined system.

The direct combinations of feature vectors were less successful than the authors expected. In their account, adding features increased the number of quantities the logistic regression had to weigh without increasing the number of training articles. Combining probabilities addressed a related problem in a different way. Each individual classifier learned from its own features first, and the final classifier handled the more compact inputs those classifiers produced. The best result was therefore achieved with a particular way of combining evidence, rather than through a general benefit from giving a classifier the largest available set of features.

### What the ablations show

#### Several comparisons probe the source of the gains

The paper offers comparisons of individual inputs and ways of combining them, alongside unsuccessful training variations and a confusion analysis. The individual-input runs establish what can be predicted from a particular kind of evidence when supplied on its own. A classifier trained on publisher data answers that question for outlet characteristics. It does not show what would happen if those characteristics were taken out of a fitted final classifier. The same distinction applies to LSA and to the pretrained text representations. Their standalone results reveal the strength of the signals, while their unique contribution to the combined result is left open.

The ranking of LSA has a concrete interpretation. Local word-use patterns were useful enough for the strongest individual text result in this collection. Those patterns could capture recurring topics or vocabulary that corresponded to categories in the sampled articles. The result does not identify which of those patterns mattered, and there is no class-by-class intervention that removes topic vocabulary or keeps only stylistic evidence. The comparison therefore supports the usefulness of the representation at this scale, while the reason for its advantage remains partly an interpretation.

The comparison between raw feature combinations and probability combinations probes a design choice closer to the final result. A direct combination gives logistic regression access to many measurements at once. A probability combination lets each group of measurements supply an already fitted prediction. The latter performed better in the reported evaluation. Given the size of the collection, the authors attribute the weak results of the direct combinations to the relationship between the amount of training data and the number of input features. Changes in the representation and in how the classifier is fitted accompany the compression, so the experiment leaves open which part contributed how much.

#### What translation changes

The original and translated BERT runs share the stated pooling choices. This makes their comparison more informative than comparing two unrelated text encoders. Reducing headline vectors with the same operation and obtaining body vectors from the same designated position keeps those parts of the procedure comparable. The input language and resources available to represent it still change together. The resulting improvement pertains to the complete translated configuration.

The authors suggest that stronger English pretraining could explain the gain. They point to the disparity between 5.7M English Wikipedia articles and 250K Bulgarian articles when discussing the amount of linguistic material available. This is a proposed explanation. The experiment does not vary pretraining data size while holding the language, training procedure, and text constant. Translation can also affect the wording the encoder sees, and that effect is bundled into the comparison.

The paper observes that a combination drawn from pretrained resources performed better than a combination that brought together locally fitted and transferred representations. The comparison concerns the feature mixtures the authors tried. It sits alongside the finding that locally fitted LSA gave the strongest individual text result. Taken together, the observations narrow the conclusion to the tested combinations. The usefulness of a representation on its own and the usefulness of adding it to a particular set are separate empirical questions.

#### Changing the learner and the training distribution

The authors tested random oversampling, which gives existing examples from smaller classes more opportunities to appear during fitting. They also tested a procedure that creates synthetic minority examples. Both approaches were tried with the configurations in the main comparison, and neither produced an improvement. The result is informative about the training distribution because skewed class frequency was a visible problem. The tested oversampling procedures, at the settings explored, did not turn that diagnosis into a measured gain. [SMOTE](https://md.research.elamur.ai/free/en/papers/chawla-2002-smote-synthetic-minority-over-sampling/)

The authors also tried a feed-forward neural network as an alternative to logistic regression. Its first fully connected hidden layer contained 64 units and used ReLU, which passes positive values and suppresses negative ones. The next hidden layer contained 32 units and used Tanh, which transforms values into a bounded range. Each layer used dropout of 0.35. Dropout temporarily removes some activations during training so the fit depends less on particular units. The authors used Adam to adjust the network parameters and explored different parameter values.

The network did not improve the results. The authors point to its greater number of parameters and the small collection as a possible explanation. The comparison establishes that the tried network brought no measured gain here. It gives limited information about what a network of a different design would do, or how this architecture would behave if the number and diversity of training examples changed.

#### Where the best system makes its mistakes

The confusion matrix aggregates predictions from the best system over the dataset. It shows the relationship between recorded categories and predicted categories, allowing the reader to distinguish frequent correct predictions from recurring substitutions. The non-toxic category has the strongest performance. The comparison with the majority baseline shows the system learned more than a preference for that class, while the matrix reveals that the class still accounts for a substantial part of the correct predictions.

The authors call attention to fake news examples assigned to conspiracy. Both categories are among the largest in the dataset. The error shows that a system can move beyond deciding whether an article resembles the non-toxic comparison group and still struggle with the distinction the study wants to make between problematic categories. The matrix establishes the direction of the confusion on the evaluated articles. An explanation in terms of shared topics, writing style, or overlapping labeling practices would require inspecting the affected examples or measuring those possibilities separately.

The smallest categories present a different problem. The classifier hardly predicts them at all, according to the authors. This is a failure of coverage even in the best aggregate configuration. Very few decisions are made in favor of those labels, so a reader interested in one of those categories would have little basis for relying on the overall accuracy as an indication of its detection quality. The comparison with the unsuccessful oversampling runs also gives the finding a practical boundary. More emphasis on the available minority examples, through the techniques tested here, did not resolve the observed difficulty.

### Limitations

#### Limits identified by the authors

The authors identify the size and imbalance of the collection as central constraints. The three smallest classes have fewer than 60 articles between them, while the non-toxic class alone has 96. In a cross-validation experiment, each training fit uses only a portion of the available records. A small class therefore offers relatively few distinct articles from which to learn. Increasing the size of a feature vector creates more candidate associations for the classifier to estimate from those same judgments. The authors use this scarcity to explain why concatenating representations and trying a larger neural classifier were unproductive.

The paper’s plans for improving the data follow from how it was acquired. The authors propose looking for additional articles using a process similar to Media Scan’s, and they point to the archived PDFs as a source that could be recovered through further processing. Those files matter because the present collection required an available, unchanged webpage. A removed article could have a surviving copy and a recorded toxicity judgment and still fall outside the experiment. Processing those copies would change the range of recoverable material as well as the number of examples.

The authors also raise the issue of uneven linguistic resources. English resources could be used through translation, and English pretraining is their suggested explanation for the advantage of the translated BERT run. They acknowledge the difficulty of obtaining representations suited to a small collection in a language that has received less attention in this line of research. Their results cover the original and translated configurations they tried, with the resulting dependence on the quality and design of those resources.

Finally, they propose exploring new information sources and revisiting the neural architecture and sampling procedures. Their account includes the possibility of mixing oversampling with undersampling, which reduces the influence of more frequent classes by using fewer of their examples. These appear as future avenues. The evaluated training variations are the oversampling and network trials already described. The rare-class performance remains an open problem in the reported system.

#### Limits visible in the setup

The sampling design supports claims about classification within this collection. Media Scan’s documented articles entered through a monitoring process, followed by a filter that retained accessible, unchanged pages. Neither stage supplies a random sample of Bulgarian online news. Articles chosen for review could differ from articles published during the same period that the project never examined. The additional availability filter could matter if the likelihood of editing or removal is related to the kind of problem an article contains. The paper describes removal after contact, but the evaluation does not measure this selection effect.

There is an additional asymmetry in how the comparison group was constructed. Media Scan’s judgments about flagged articles gave the researchers a toxicity label for a specific piece. The non-toxic selection relied on the absence of known toxicity examples for an outlet. The two procedures can produce a useful training contrast, with different standards of evidence behind the two sides. An outlet with no recorded cases may publish an article that would draw criticism if reviewed. An outlet with a recorded case may publish many ordinary pieces. The study does not estimate how frequently such situations occur or how they would affect the reported metrics.

Publisher features make this selection issue especially pertinent. If examples from the same outlet appear in different folds, an outlet’s feature values can recur among training and test records. The paper describes 5-fold evaluation and inner tuning, with no separate results for an evaluation that holds entire outlets out. The outlet-only result may therefore depend partly on associations learnable among publishers already represented in the collection. The published results leave open how much of that performance would carry over to outlets absent from training or to a sample in which toxic and non-toxic articles were drawn from the same publishers.

A related uncertainty concerns the evaluation of the representations. Fitting LSA to text requires estimating vocabulary weights and the decomposition from some set of documents. The description says the authors trained it on their data and that logistic regression was tuned within the training portion of each outer fold. It does not specify whether each outer fold received its own LSA fit. Even without labels, text from held-out articles can affect vocabulary weights and the shared directions of a decomposition if it is included at that stage. The paper’s stated precaution against leaking label information in the stacking process addresses a distinct concern.

The paper also leaves details of label assignment open. It says that multiple toxicity labels may apply, describes the trained system as multiclass, and reports a confusion matrix and category averages. It does not fully explain how every article with overlapping labels entered training and scoring. A mistake in the confusion matrix could be particularly hard to interpret where a story plausibly fits either category. The paper does identify fake news and conspiracy as a recurring substitution, but it does not give an annotation agreement study or a breakdown of how often the underlying descriptions overlap.

BERT and the Universal Sentence Encoder used limited stretches of text. For bodies longer than the stated input limits, their vectors omit later material. Some decisive part of a story could occur late, such as a qualification that changes the meaning of an opening claim. Article-wide style features would still describe broad properties of that body, while those pretrained vectors would reflect the portion they received. The paper does not compare performance by article length or by the location of the material that motivated a toxicity judgment.

Translation adds another possible change to what the classifier observes. An English rendering can preserve the topic and much of the meaning while altering phrasing, capitalization, or rhetorical cues. That matters to a study using structural, lexical, and stylistic measurements. The comparison between Bulgarian and translated BERT estimates the net result for those configurations. It leaves unresolved which verbal cues were preserved, lost, or made easier for the English-oriented resources to process.

The predicted categories should also be understood in light of the information supplied to the system. The classifier learns from text representations and publisher attributes. Some Media Scan judgments involved outside clarification, and several categories can require knowledge about evidence, intent, or context. A probability for fake news represents the estimated fit to the training category. Direct verification of the events described would require evidence about the events. Similarly, performance on the study’s political categories concerns the labels as used in the collection, with no separate test of how consistently other reviewers or a different monitoring project would apply them.

Accuracy and macro-F1 quantify different aspects of classification in the chosen evaluation. The confusion analysis provides some information about the observed error patterns, but the paper gives limited evidence about their stability on another collection or at a later time. It also does not evaluate what would happen if a reader or editor acted on the system’s predictions. The aim of limiting the impact of toxic coverage motivates the research. The measured outcome is agreement with recorded article categories under cross-validation.

### What came after

No follow-up study is documented that establishes how later researchers used this Bulgarian corpus or its probability-combination approach. The paper itself identifies several lines for continuation. One starts from the Media Scan archives. Recovering stories preserved as PDFs would give access to pieces the authors could not include through their HTML crawl. Extending collection through similar monitoring elsewhere could add examples and change the distribution of outlets or labels. Both directions address the link between the original sampling procedure and what the detector could learn.

A second line concerns the difference between adding articles and changing how existing articles influence training. The authors distinguish expanding and balancing the collection from revisiting resampling or changing the neural architecture. Their reported oversampling results give a reason to keep that distinction. Reusing or synthesizing minority training examples changes their influence on the fit. Collecting more independently judged stories can supply new instances of the language and circumstances associated with a rare label. The paper identifies both as possible directions and reports the outcome only for the sampling variations it actually tried.

The authors place the research within Tanbih, a project intended to help readers understand the information they are encountering, including issues such as propaganda and media bias. That broader aim explains why distinguishing several categories mattered to the authors. The reported work supplies a Bulgarian article collection, an evaluation of several ways to represent the text and publisher, and a comparison between combining raw features and combining predictions. Its account of the remaining work centers on the labels the best classifier scarcely recovered, even after its aggregate scores improved.

## Cite

Cite as Yoan Dinkov, Ivan Koychev and Preslav Nakov. 2019. Detecting Toxicity in News Articles: Application to Bulgarian. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.26615/978-954-452-056-4_029](https://doi.org/10.26615/978-954-452-056-4_029)

```bibtex
@inproceedings{dinkov2019detecting,
  title = {{Detecting Toxicity in News Articles: Application to Bulgarian}},
  author = {Yoan Dinkov, Ivan Koychev and Preslav Nakov},
  booktitle = {Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019)},
  year = {2019},
  doi = {10.26615/978-954-452-056-4\_029},
  url = {https://doi.org/10.26615/978-954-452-056-4_029}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
