An interactive dashboard exploring how West African newspapers portray Islam and Muslims, using AI-powered sentiment analysis of the Islam West Africa Collection (IWAC) corpus. Three large language models (LLMs) analyzed over 12,000 Francophone press articles to assess their tone, objectivity, and thematic focus on Islam.

Corpus

12,280+ articles from 56 newspapers across 5 countries (Benin, Burkina Faso, Côte d'Ivoire, Niger, Togo), sourced from the IWAC Hugging Face dataset.

Methodology

Each article was analyzed by three LLMs using a task-specific French-language prompt:

  • OpenAI GPT-5 mini (ChatGPT)
  • Google Gemini 3.0 Flash
  • Mistral Ministral 3 14B

The models evaluated each article across three analytical dimensions:

  1. Polarity: Stance toward Islam and Muslims (very negative → very positive)
  2. Subjectivity: Density of opinion vs. reported fact (1-5 scale)
  3. Centrality: Thematic prominence of Islamic topics (marginal → very central)

Each model was required to generate concise justifications for its classifications, producing an auditable dataset documenting both conclusions and inferential reasoning.

Cost: ~€16 each for Gemini and ChatGPT, €6 for Mistral, with 24 hours of batch processing—replacing months of potential manual coding.

Features

Eight visualization views

  1. Charts: Polarity and subjectivity distribution by newspaper
  2. Trends: Temporal evolution of sentiments over the decades
  3. Distribution: Cross-tabulation of polarity × subjectivity
  4. Volume: Article counts by country over time
  5. Heatmap: Centrality of Islam/Muslims by country and year
  6. Table: Searchable article list with full details and AI justifications
  7. Comparison: Side-by-side analysis of how different AI models interpreted the same articles
  8. Extremes: Keywords associated with the most positive/negative portrayals

Multi-model comparison

To audit AI reliability, the dashboard compares how the three models interpreted each article. When models disagree, a more powerful AI (Gemini 3.0 Pro) serves as arbiter to evaluate which interpretation better fits the source text. This revealed that Gemini 3.0 Flash was the most reliable model overall.

Interface

  • Bilingual (French/English)
  • Filter by country, newspaper, and sentiment criteria
  • Shareable URLs and CSV export for further analysis

A "vibe coding" experiment

This dashboard was built entirely through natural-language collaboration with AI coding assistants (Claude Sonnet and Opus), without manually writing code. This approach demonstrates how researchers without programming expertise can now develop sophisticated analytical tools by articulating their vision in plain language—lowering barriers to digital humanities work for scholars at institutions with limited technical support.

IWAC Sentiment Analysis