text-as-data-social

Converts unstructured social science text into quantitative variables using topic modeling and sentiment analysis.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Yuuqq/claude-social-science-skills --skill text-as-data-social
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: text-as-data-social
Source: https://github.com/Yuuqq/claude-social-science-skills/tree/main/social-science-skills/text-as-data-social
Command: npx skills add https://github.com/Yuuqq/claude-social-science-skills --skill text-as-data-social

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bertopic, gensim, jieba, numpy, pandas, sentence-transformers, scikit-learn, transformers, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the problem of converting unstructured social science text into quantitative, analysis-ready variables without relying on ad-hoc NLP guesswork.

Core Features & Use Cases

  • Dictionary-based content analysis: Build and apply LIWC-style dictionaries to generate interpretable category proportions and counts (e.g., frames, ideology-like word categories).
  • Topic modeling at scale: Discover themes with LDA or BERTopic and use embeddings to make topics meaningful and comparable across documents.
  • Sentiment and semantic measurement: Compute sentiment scores and perform embedding-based similarity and (optionally) bias-related measures.
  • LLM-assisted annotation support: Use LLM labeling workflows with validation principles to translate qualitative coding schemes into datasets that can be modeled.

Quick Start

Ask your Claude agent to process your corpus, run BERTopic topic modeling, and output a document-by-topic feature table plus sentiment scores.

Frequently Asked Questions about text-as-data-social

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert unstructured social science text into quantitative variables for modeling?

To convert unstructured social science text into quantitative variables, apply dictionary-based content analysis, topic modeling, and sentiment analysis to generate analysis-ready feature tables from corpora like policy texts, news, or speeches.

Can I use BERTopic and LDA for topic modeling on social media corpora?

Yes, you can use BERTopic and LDA for topic modeling on social media corpora. The workflow discovers themes and leverages sentence embeddings to make topics meaningful and comparable across documents, outputting a document-by-topic feature table.

Does dictionary coding work for measuring ideology or framing in policy texts?

Dictionary coding works for measuring ideology or framing in policy texts by building and applying LIWC-style dictionaries to generate interpretable category proportions and counts for specific word categories.

How do I validate LLM-assisted annotation when coding qualitative text datasets?

To validate LLM-assisted annotation for qualitative text datasets, apply validation principles that translate qualitative coding schemes into modelable datasets, ensuring LLM labeling workflows maintain consistency across the corpus.

What Python dependencies do I need for text embeddings and sentiment analysis?

Python dependencies for text embeddings and sentiment analysis include sentence-transformers, transformers, scikit-learn, numpy, and pandas, supporting embedding-based similarity measures and transformer-based sentiment scoring.

Is this approach suitable for processing large-scale survey text corpora?

This approach is suitable for large-scale survey text corpora, applying topic modeling and embedding-based semantic measurement to process surveys, speeches, and social media texts into structured analytical variables.