Analyze AI Sentiments is a Drupal module by DXPR that measures tone, objectivity, reading level, and audience fit across your Drupal content using AI. An Analyze plugin built by DXPR.
AI-powered multi-dimensional text analysis measuring trust, objectivity, audience targeting, and reading levels.
- Four Analysis Dimensions: Trust & Credibility, Objectivity & Bias, Audience Vibe Check, CEFR Reading Level
- Flexible Configuration: Add, remove, reorder sentiments dimensions via UI
- Content Type Control: Enable/disable specific analysis types per content type
- Visual Feedback: Gauge displays with clear progression indicators
- Analyze Framework Integration: Consistent reporting across analysis tools
composer require drupal/analyze_ai_sentiments
drush en analyze_ai_sentiments- Configure AI provider at
/admin/config/ai/providers - Configure sentiments dimensions at
/admin/config/analyze/sentiments - Enable per content type at
/admin/config/content/analyze-settings - Configure permissions at
/admin/people/permissions#module-analyze_ai_sentiments
Two configuration methods:
- Go to
/admin/structure/types/manage/{content-type} - Find "Sentiments Analysis" vertical tab
- Enable/disable specific sentiments for this content type
- Go to
/admin/config/content/analyze-settings - Find "AI Sentiments Analysis" section
- Enable/disable analyzer for specific content types
Measures how authoritative vs promotional the content appears.
Evaluates balance between opinion-based and fact-based content.
Identifies generational targeting (Gen Z to Boomer).
Assesses language proficiency requirements (A1 Beginner to C2 Proficient).
Results shown as gauges with:
- Clear progression indicators
- Relevant min/mid/max labels for each dimension
- Simple visual assessment for quick content evaluation
The Sentiments module includes a built-in
Agent Skills file (via the base
Analyze module) that teaches AI coding assistants how to run
sentiment analysis through natural language. Run
drush analyze:setup-ai to enable, then ask naturally:
"Run sentiment analysis on all articles"
"Check the trust and objectivity scores for the homepage"
"Analyze reading level across all blog posts"
"Run sentiment and brand voice analysis together"
Batch processing is available via the centralized Analyze batch system:
# Check analysis coverage
drush analyze:batch --status
# Run this analyzer on all enabled content types
drush analyze:batch \
--analyzers=analyze_ai_sentiments_analyzer
# Run on specific content types with limit
drush analyze:batch \
--analyzers=analyze_ai_sentiments_analyzer \
--types=node:article --limit=50
# Force re-analysis of already analyzed content
drush analyze:batch \
--analyzers=analyze_ai_sentiments_analyzer --forceCompatible with Claude Code, Codex CLI, Gemini CLI, GitHub Copilot, Cursor, and other tools supporting the Agent Skills standard.
# Lint code
docker compose run --rm drupal-lint
# Check deprecations
docker compose run --rm drupal-check
# Auto-fix issues
docker compose run --rm drupal-lint-auto-fixInstall with ./scripts/setup-hooks.sh:
- Automatically runs
drupal-lint-auto-fixon commits - Blocks commits with unfixable lint issues
- Ensures consistent code quality
To bypass in emergencies:
git commit --no-verify -m "emergency commit"- Analyze - Required. Provides the plugin framework, Analyze tab, and batch processing this module extends
- AI - Required. Supplies the LLM provider used for scoring sentiment dimensions
- Views Color Scales - Required. Renders color-coded sentiment score columns in the Views report
- AI Content Marketing Audit - Sibling Analyze plugin that scores marketing effectiveness
- AI Content Security Audit - Sibling Analyze plugin that detects PII and credential leaks
- Analyze Broken Links - Sibling Analyze plugin that checks link health without AI