In our recent analysis, we uncovered a notable anomaly: a 24h momentum spike of -0.156 related to sustainability. This significant drop indicates that there’s a shift in sentiment, which can have profound implications for businesses and investors alike. The leading language driving this sentiment is Spanish, with a notable lead of 25.2 hours, suggesting that critical insights are being overlooked in non-Spanish speaking sectors. This is a clear sign that sentiment analysis must consider multilingual contexts to capture emerging trends effectively.

Spanish coverage led by 25.2 hours. No at T+25.2h. Confidence scores: Spanish 0.90, English 0.90, French 0.90 Source: Pulsebit /sentiment_by_lang.
The problem here is evident: your model missed this shift by 25.2 hours because it likely does not accommodate the nuances of multilingual origins or the dominance of specific entities. For example, while the Spanish press is buzzing with sustainability-related news, if your pipeline is only processing English data, you would be left unaware of this crucial development. This structural gap can lead to missed opportunities or delayed responses to significant market shifts.
Let's dive into the code to catch this sentiment shift effectively. We can start by querying our API to filter by language and gather relevant data on sustainability. Here’s how you can do that in Python:
import requests
# Define the endpoint and parameters
endpoint = "https://api.pulsebit.com/articles"
params = {
"topic": "sustainability",
"lang": "sp"
}
# Make the API call
response = requests.get(endpoint, params=params)
data = response.json()

Left: Python GET /news_semantic call for 'sustainability'. Right: returned JSON response structure (clusters: 3). Source: Pulsebit /news_semantic.
Next, we want to assess the narrative surrounding the sentiment. We’ll run the cluster reason string through our sentiment endpoint to score the narrative framing itself. This additional check provides insights into how the sentiment is being shaped by the context of the articles. Here’s how you can implement that:
# Define the sentiment analysis endpoint
sentiment_endpoint = "https://api.pulsebit.com/sentiment"
narrative_string = "Clustered by shared themes: spotlight:, sustainable, investing, business, sustainability."
# Make the POST request to analyze the sentiment narrative
sentiment_response = requests.post(sentiment_endpoint, json={"input": narrative_string})
sentiment_data = sentiment_response.json()
With these snippets, you’re set to capture the sustainability sentiment shift and the framing context surrounding it.
Now, let’s explore three builds we can implement based on this pattern:
Geo-Filtered Alert System: Create a system that triggers alerts when sustainability-related news in Spanish reaches a specific signal strength threshold, say 0.552. This would allow your team to stay informed on developments even if they aren't in English.
Meta-Sentiment Dashboard: Develop a dashboard that visualizes sentiment scores from the meta-sentiment analysis. By inputting the narrative string from significant coverage, you can track shifts in sentiment around key topics, like sustainability and business.
Thematic Trend Analysis: Implement a trend analysis tool that monitors forming themes, such as “sustainability (+0.00)” and “business (+0.00)” against mainstream topics like “spotlight:, sustainable, investing.” This can provide insights into how sustainability narratives are evolving over time.
We highly encourage you to get started with our API documentation at pulsebit.lojenterprise.com/docs. You can copy-paste the code snippets provided above and run them in under 10 minutes to harness the power of sentiment data for your projects.

Geographic detection output for sustainability. India leads with 5 articles and sentiment +0.80. Source: Pulsebit /news_recent geographic fields.
Top comments (0)