Polarity in the BBC Media Coverage of the Belt and Road Initiative Project
Description
BBC polarity data were reproduced using the same BBC Monitoring corpus included in the study, covering Belt and Road Initiative-related articles published between 2013 and 2024. Each article was treated as a separate observation and linked to its publication year and identifying information. The textual content of each article was prepared for sentiment analysis by removing non-content elements such as duplicated metadata, HTML tags, navigation text, and empty records. Excessive preprocessing was avoided because the VADER sentiment algorithm relies on linguistic features including punctuation, capitalization, intensifiers, and negation. Polarity was measured using VADER (Valence Aware Dictionary and sEntiment Reasoner), a rule-based sentiment analysis method designed to identify the evaluative direction of textual content. VADER was applied independently to each BBC article and generated four scores: positive, negative, neutral, and compound sentiment. The compound score was used as the principal polarity measure because it summarizes the overall evaluative orientation of the text on a normalized scale ranging from −1 to +1. Negative compound scores represent increasingly negative evaluative orientation, scores close to zero indicate relatively neutral content, and positive scores represent increasingly positive orientation. The continuous compound score was retained as the article-level polarity variable for subsequent statistical analysis. To reproduce the data, researchers should use the same BBC article corpus, apply identical text-cleaning procedures, run VADER on each article, extract the compound sentiment score, and merge the resulting polarity measure
Files
Steps to reproduce
To reproduce the BBC polarity data, begin with the same corpus of BBC Monitoring articles used in the study, covering the Belt and Road Initiative during 2013–2024. Each article should be stored as one observation with a unique article ID, publication date, year, headline, and article text. First, prepare the textual data consistently across all articles. Remove non-content material such as duplicated metadata, HTML tags, navigation text, or empty records. Avoid excessive preprocessing because the VADER sentiment algorithm uses punctuation, capitalization, intensifiers, negations, and other linguistic cues when calculating sentiment. Second, apply the VADER (Valence Aware Dictionary and sEntiment Reasoner) sentiment-analysis algorithm independently to each BBC article. VADER generates four sentiment measures: negative, neutral, positive, and compound. The compound score provides the overall sentiment orientation of the text and ranges from −1 to +1. Third, use the VADER compound score as the article-level polarity measure. Negative values indicate a more negative evaluative orientation, values close to zero indicate relatively neutral sentiment, and positive values indicate a more positive evaluative orientation. The continuous compound score should be retained for statistical analysis rather than converting it into categories, unless categorical sentiment was explicitly used in the original analysis. A typical implementation in Python is: ```python import pandas as pd from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer df = pd.read_csv("BBC_BRI_articles.csv") analyzer = SentimentIntensityAnalyzer() scores = df["article_text"].apply( lambda x: analyzer.polarity_scores(str(x)) ) df["negative"] = scores.apply(lambda x: x["neg"]) df["neutral"] = scores.apply(lambda x: x["neu"]) df["positive"] = scores.apply(lambda x: x["pos"]) df["polarity"] = scores.apply(lambda x: x["compound"]) df.to_csv("BBC_BRI_polarity.csv", index=False) ``` The resulting replication dataset should therefore contain the article identifier, publication year, the three VADER sentiment components, and the compound polarity score. This polarity variable can then be merged with the other article-level variables used in the study and entered into the same descriptive, regression, or structural equation models reported in the manuscript. For reproducibility, the final replication materials should also report the software environment, Python version, VADER package/version, exact article-text field used, preprocessing rules, and any missing-data exclusions. These details are important because small differences in preprocessing or software versions can produce slightly different sentiment scores.
Institutions
- Liaoning UniversityLiaoning, Shenyang