@wentorai/research-plugins 1.2.3 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +29 -33
  2. package/openclaw.plugin.json +10 -3
  3. package/package.json +2 -5
  4. package/skills/analysis/dataviz/SKILL.md +25 -0
  5. package/skills/analysis/dataviz/chart-image-generator/SKILL.md +1 -1
  6. package/skills/analysis/econometrics/SKILL.md +23 -0
  7. package/skills/analysis/econometrics/robustness-checks/SKILL.md +1 -1
  8. package/skills/analysis/statistics/SKILL.md +21 -0
  9. package/skills/analysis/statistics/data-anomaly-detection/SKILL.md +1 -1
  10. package/skills/analysis/statistics/ml-experiment-tracker/SKILL.md +1 -1
  11. package/skills/analysis/statistics/{senior-data-scientist-guide → modeling-strategy-guide}/SKILL.md +5 -5
  12. package/skills/analysis/wrangling/SKILL.md +21 -0
  13. package/skills/analysis/wrangling/csv-data-analyzer/SKILL.md +1 -1
  14. package/skills/analysis/wrangling/data-cog-guide/SKILL.md +1 -1
  15. package/skills/domains/ai-ml/SKILL.md +37 -0
  16. package/skills/domains/biomedical/SKILL.md +28 -0
  17. package/skills/domains/biomedical/genomas-guide/SKILL.md +1 -1
  18. package/skills/domains/biomedical/med-researcher-guide/SKILL.md +1 -1
  19. package/skills/domains/biomedical/medgeclaw-guide/SKILL.md +1 -1
  20. package/skills/domains/business/SKILL.md +17 -0
  21. package/skills/domains/business/architecture-design-guide/SKILL.md +1 -1
  22. package/skills/domains/chemistry/SKILL.md +19 -0
  23. package/skills/domains/chemistry/computational-chemistry-guide/SKILL.md +1 -1
  24. package/skills/domains/cs/SKILL.md +21 -0
  25. package/skills/domains/ecology/SKILL.md +16 -0
  26. package/skills/domains/economics/SKILL.md +20 -0
  27. package/skills/domains/economics/post-labor-economics/SKILL.md +1 -1
  28. package/skills/domains/economics/pricing-psychology-guide/SKILL.md +1 -1
  29. package/skills/domains/education/SKILL.md +19 -0
  30. package/skills/domains/education/academic-study-methods/SKILL.md +1 -1
  31. package/skills/domains/education/edumcp-guide/SKILL.md +1 -1
  32. package/skills/domains/finance/SKILL.md +19 -0
  33. package/skills/domains/finance/akshare-finance-data/SKILL.md +1 -1
  34. package/skills/domains/finance/options-analytics-agent-guide/SKILL.md +1 -1
  35. package/skills/domains/finance/stata-accounting-research/SKILL.md +1 -1
  36. package/skills/domains/geoscience/SKILL.md +17 -0
  37. package/skills/domains/humanities/SKILL.md +16 -0
  38. package/skills/domains/humanities/history-research-guide/SKILL.md +1 -1
  39. package/skills/domains/humanities/political-history-guide/SKILL.md +1 -1
  40. package/skills/domains/law/SKILL.md +19 -0
  41. package/skills/domains/math/SKILL.md +17 -0
  42. package/skills/domains/pharma/SKILL.md +17 -0
  43. package/skills/domains/physics/SKILL.md +16 -0
  44. package/skills/domains/social-science/SKILL.md +17 -0
  45. package/skills/domains/social-science/sociology-research-methods/SKILL.md +1 -1
  46. package/skills/literature/discovery/SKILL.md +20 -0
  47. package/skills/literature/discovery/paper-recommendation-guide/SKILL.md +1 -1
  48. package/skills/literature/discovery/semantic-paper-radar/SKILL.md +1 -1
  49. package/skills/literature/fulltext/SKILL.md +26 -0
  50. package/skills/literature/metadata/SKILL.md +35 -0
  51. package/skills/literature/metadata/doi-content-negotiation/SKILL.md +4 -0
  52. package/skills/literature/metadata/doi-resolution-guide/SKILL.md +4 -0
  53. package/skills/literature/metadata/orcid-api/SKILL.md +4 -0
  54. package/skills/literature/metadata/orcid-integration-guide/SKILL.md +4 -0
  55. package/skills/literature/search/SKILL.md +43 -0
  56. package/skills/literature/search/paper-search-mcp-guide/SKILL.md +1 -1
  57. package/skills/research/automation/SKILL.md +21 -0
  58. package/skills/research/deep-research/SKILL.md +24 -0
  59. package/skills/research/deep-research/auto-deep-research-guide/SKILL.md +1 -1
  60. package/skills/research/deep-research/in-depth-research-guide/SKILL.md +1 -1
  61. package/skills/research/funding/SKILL.md +20 -0
  62. package/skills/research/methodology/SKILL.md +24 -0
  63. package/skills/research/paper-review/SKILL.md +19 -0
  64. package/skills/research/paper-review/paper-critique-framework/SKILL.md +1 -1
  65. package/skills/tools/code-exec/SKILL.md +18 -0
  66. package/skills/tools/diagram/SKILL.md +20 -0
  67. package/skills/tools/document/SKILL.md +21 -0
  68. package/skills/tools/knowledge-graph/SKILL.md +21 -0
  69. package/skills/tools/ocr-translate/SKILL.md +18 -0
  70. package/skills/tools/ocr-translate/handwriting-recognition-guide/SKILL.md +2 -0
  71. package/skills/tools/ocr-translate/latex-ocr-guide/SKILL.md +2 -0
  72. package/skills/tools/scraping/SKILL.md +17 -0
  73. package/skills/writing/citation/SKILL.md +33 -0
  74. package/skills/writing/citation/zotfile-attachment-guide/SKILL.md +2 -0
  75. package/skills/writing/composition/SKILL.md +22 -0
  76. package/skills/writing/composition/research-paper-writer/SKILL.md +1 -1
  77. package/skills/writing/composition/scientific-writing-wrapper/SKILL.md +1 -1
  78. package/skills/writing/latex/SKILL.md +22 -0
  79. package/skills/writing/latex/academic-writing-latex/SKILL.md +1 -1
  80. package/skills/writing/latex/latex-drawing-guide/SKILL.md +1 -1
  81. package/skills/writing/polish/SKILL.md +20 -0
  82. package/skills/writing/polish/chinese-text-humanizer/SKILL.md +1 -1
  83. package/skills/writing/templates/SKILL.md +22 -0
  84. package/skills/writing/templates/beamer-presentation-guide/SKILL.md +1 -1
  85. package/skills/writing/templates/scientific-article-pdf/SKILL.md +1 -1
  86. package/skills/analysis/dataviz/citation-map-guide/SKILL.md +0 -184
  87. package/skills/analysis/dataviz/data-visualization-principles/SKILL.md +0 -171
  88. package/skills/analysis/econometrics/empirical-paper-analysis/SKILL.md +0 -192
  89. package/skills/analysis/econometrics/panel-data-regression-workflow/SKILL.md +0 -267
  90. package/skills/analysis/econometrics/stata-regression/SKILL.md +0 -117
  91. package/skills/analysis/statistics/general-statistics-guide/SKILL.md +0 -226
  92. package/skills/analysis/statistics/infiagent-benchmark-guide/SKILL.md +0 -106
  93. package/skills/analysis/statistics/pywayne-statistics-guide/SKILL.md +0 -192
  94. package/skills/analysis/statistics/quantitative-methods-guide/SKILL.md +0 -193
  95. package/skills/analysis/wrangling/claude-data-analysis-guide/SKILL.md +0 -100
  96. package/skills/analysis/wrangling/open-data-scientist-guide/SKILL.md +0 -197
  97. package/skills/domains/ai-ml/annotated-dl-papers-guide/SKILL.md +0 -159
  98. package/skills/domains/humanities/digital-humanities-methods/SKILL.md +0 -232
  99. package/skills/domains/law/legal-research-methods/SKILL.md +0 -190
  100. package/skills/domains/social-science/sociology-research-guide/SKILL.md +0 -238
  101. package/skills/literature/discovery/arxiv-paper-monitoring/SKILL.md +0 -233
  102. package/skills/literature/discovery/paper-tracking-guide/SKILL.md +0 -211
  103. package/skills/literature/fulltext/zotero-scihub-guide/SKILL.md +0 -168
  104. package/skills/literature/search/arxiv-osiris/SKILL.md +0 -199
  105. package/skills/literature/search/deepgit-search-guide/SKILL.md +0 -147
  106. package/skills/literature/search/multi-database-literature-search/SKILL.md +0 -198
  107. package/skills/literature/search/papers-chat-guide/SKILL.md +0 -194
  108. package/skills/literature/search/pasa-paper-search-guide/SKILL.md +0 -138
  109. package/skills/literature/search/scientify-literature-survey/SKILL.md +0 -203
  110. package/skills/research/automation/ai-scientist-guide/SKILL.md +0 -228
  111. package/skills/research/automation/coexist-ai-guide/SKILL.md +0 -149
  112. package/skills/research/automation/foam-agent-guide/SKILL.md +0 -203
  113. package/skills/research/automation/research-paper-orchestrator/SKILL.md +0 -254
  114. package/skills/research/deep-research/academic-deep-research/SKILL.md +0 -190
  115. package/skills/research/deep-research/cognitive-kernel-guide/SKILL.md +0 -200
  116. package/skills/research/deep-research/corvus-research-guide/SKILL.md +0 -132
  117. package/skills/research/deep-research/deep-research-pro/SKILL.md +0 -213
  118. package/skills/research/deep-research/deep-research-work/SKILL.md +0 -204
  119. package/skills/research/deep-research/research-cog/SKILL.md +0 -153
  120. package/skills/research/methodology/academic-mentor-guide/SKILL.md +0 -169
  121. package/skills/research/methodology/deep-innovator-guide/SKILL.md +0 -242
  122. package/skills/research/methodology/research-pipeline-units-guide/SKILL.md +0 -169
  123. package/skills/research/paper-review/paper-compare-guide/SKILL.md +0 -238
  124. package/skills/research/paper-review/paper-digest-guide/SKILL.md +0 -240
  125. package/skills/research/paper-review/paper-research-assistant/SKILL.md +0 -231
  126. package/skills/research/paper-review/research-quality-filter/SKILL.md +0 -261
  127. package/skills/tools/code-exec/contextplus-mcp-guide/SKILL.md +0 -110
  128. package/skills/tools/diagram/clawphd-guide/SKILL.md +0 -149
  129. package/skills/tools/diagram/scientific-graphical-abstract/SKILL.md +0 -201
  130. package/skills/tools/document/md2pdf-xelatex/SKILL.md +0 -212
  131. package/skills/tools/document/openpaper-guide/SKILL.md +0 -232
  132. package/skills/tools/document/qq-connect/SKILL.md +0 -227
  133. package/skills/tools/document/weknora-guide/SKILL.md +0 -216
  134. package/skills/tools/knowledge-graph/mimir-memory-guide/SKILL.md +0 -135
  135. package/skills/tools/knowledge-graph/open-webui-tools-guide/SKILL.md +0 -156
  136. package/skills/tools/ocr-translate/formula-recognition-guide/SKILL.md +0 -367
  137. package/skills/tools/ocr-translate/math-equation-renderer/SKILL.md +0 -198
  138. package/skills/tools/scraping/api-data-collection-guide/SKILL.md +0 -301
  139. package/skills/writing/citation/academic-citation-manager-guide/SKILL.md +0 -182
  140. package/skills/writing/composition/opendraft-thesis-guide/SKILL.md +0 -200
  141. package/skills/writing/composition/paper-debugger-guide/SKILL.md +0 -143
  142. package/skills/writing/composition/paperforge-guide/SKILL.md +0 -205
@@ -1,232 +0,0 @@
1
- ---
2
- name: digital-humanities-methods
3
- description: "Computational methods for humanities research with text and network analysis"
4
- metadata:
5
- openclaw:
6
- emoji: "📜"
7
- category: "domains"
8
- subcategory: "humanities"
9
- keywords: ["digital humanities", "text analysis", "corpus linguistics", "network analysis", "cultural analytics", "computational methods"]
10
- source: "https://clawhub.ai/digital-humanities"
11
- ---
12
-
13
- # Digital Humanities Methods
14
-
15
- ## Overview
16
-
17
- Digital Humanities (DH) applies computational methods to humanistic inquiry — analyzing literary texts, historical records, cultural artifacts, and social networks at scale. This guide covers the core computational methods used in DH research: text analysis, topic modeling, network analysis, spatial analysis, and corpus linguistics. These methods complement rather than replace traditional close reading and archival research.
18
-
19
- ## Text Analysis
20
-
21
- ### Preprocessing Pipeline
22
-
23
- ```python
24
- import re
25
- from collections import Counter
26
-
27
- def preprocess_text(text: str, language: str = "en") -> list:
28
- """Standard preprocessing for humanities text analysis."""
29
- # Lowercase
30
- text = text.lower()
31
-
32
- # Remove metadata markers (page numbers, headers)
33
- text = re.sub(r'\[page \d+\]', '', text)
34
- text = re.sub(r'\n{3,}', '\n\n', text)
35
-
36
- # Tokenize (simple whitespace + punctuation split)
37
- tokens = re.findall(r'\b[a-z]+\b', text)
38
-
39
- # Remove stopwords (customize per corpus!)
40
- # Standard lists often remove words meaningful in literary analysis
41
- # e.g., "not", "but", "never" carry sentiment — keep them if relevant
42
- stopwords = {"the", "a", "an", "is", "are", "was", "were", "in",
43
- "on", "at", "to", "for", "of", "with", "and", "or"}
44
- tokens = [t for t in tokens if t not in stopwords and len(t) > 2]
45
-
46
- return tokens
47
-
48
- # Word frequency analysis
49
- def word_frequencies(tokens: list, top_n: int = 50) -> list:
50
- return Counter(tokens).most_common(top_n)
51
- ```
52
-
53
- ### Stylometry (Authorship Analysis)
54
-
55
- ```python
56
- """Stylometric features for authorship attribution."""
57
-
58
- def extract_style_features(text: str) -> dict:
59
- """Extract stylistic features from a text."""
60
- sentences = text.split('.')
61
- words = text.split()
62
- chars = list(text)
63
-
64
- return {
65
- "avg_sentence_length": len(words) / max(len(sentences), 1),
66
- "avg_word_length": sum(len(w) for w in words) / max(len(words), 1),
67
- "vocabulary_richness": len(set(words)) / max(len(words), 1),
68
- "hapax_ratio": sum(1 for w, c in Counter(words).items() if c == 1) / max(len(set(words)), 1),
69
- "comma_rate": text.count(',') / max(len(words), 1),
70
- "semicolon_rate": text.count(';') / max(len(words), 1),
71
- "question_rate": text.count('?') / max(len(sentences), 1),
72
- "exclamation_rate": text.count('!') / max(len(sentences), 1),
73
- }
74
- ```
75
-
76
- ### Sentiment Analysis for Historical Texts
77
-
78
- ```python
79
- # Note: Modern NLP sentiment tools are trained on contemporary text.
80
- # For historical texts, consider:
81
- # 1. Historical sentiment lexicons (e.g., NRC Emotion Lexicon adapted)
82
- # 2. Period-specific word lists
83
- # 3. Manual validation on a sample before scaling
84
-
85
- from transformers import pipeline
86
-
87
- # Modern text sentiment (use with caution on historical texts)
88
- sentiment = pipeline("sentiment-analysis")
89
- result = sentiment("It was the best of times, it was the worst of times.")
90
-
91
- # Better: keyword-based approach with custom lexicons
92
- POSITIVE = {"virtue", "honor", "glory", "triumph", "beauty", "noble"}
93
- NEGATIVE = {"vice", "shame", "defeat", "ruin", "wretched", "base"}
94
-
95
- def lexicon_sentiment(tokens: list, pos: set, neg: set) -> float:
96
- """Simple lexicon-based sentiment score."""
97
- pos_count = sum(1 for t in tokens if t in pos)
98
- neg_count = sum(1 for t in tokens if t in neg)
99
- total = pos_count + neg_count
100
- if total == 0:
101
- return 0.0
102
- return (pos_count - neg_count) / total
103
- ```
104
-
105
- ## Topic Modeling
106
-
107
- ```python
108
- from sklearn.feature_extraction.text import CountVectorizer
109
- from sklearn.decomposition import LatentDirichletAllocation
110
-
111
- def run_topic_model(documents: list, n_topics: int = 10,
112
- n_top_words: int = 15):
113
- """LDA topic modeling on a corpus of documents."""
114
- # Vectorize
115
- vectorizer = CountVectorizer(max_df=0.95, min_df=2,
116
- max_features=5000,
117
- stop_words="english")
118
- dtm = vectorizer.fit_transform(documents)
119
- feature_names = vectorizer.get_feature_names_out()
120
-
121
- # Fit LDA
122
- lda = LatentDirichletAllocation(n_components=n_topics,
123
- random_state=42,
124
- max_iter=50)
125
- lda.fit(dtm)
126
-
127
- # Display topics
128
- topics = {}
129
- for topic_idx, topic in enumerate(lda.components_):
130
- top_words = [feature_names[i] for i in topic.argsort()[-n_top_words:]]
131
- topics[f"Topic {topic_idx}"] = top_words
132
- print(f"Topic {topic_idx}: {', '.join(top_words)}")
133
-
134
- return lda, topics, dtm
135
- ```
136
-
137
- ## Network Analysis
138
-
139
- ### Social Network from Letters/Correspondence
140
-
141
- ```python
142
- import networkx as nx
143
-
144
- def build_correspondence_network(letters: list) -> nx.Graph:
145
- """Build a social network from letter metadata.
146
-
147
- Args:
148
- letters: list of dicts with 'sender', 'recipient', 'date', 'location'
149
- """
150
- G = nx.Graph()
151
-
152
- for letter in letters:
153
- sender = letter["sender"]
154
- recipient = letter["recipient"]
155
-
156
- if G.has_edge(sender, recipient):
157
- G[sender][recipient]["weight"] += 1
158
- else:
159
- G.add_edge(sender, recipient, weight=1)
160
-
161
- # Compute centrality measures
162
- centrality = nx.degree_centrality(G)
163
- betweenness = nx.betweenness_centrality(G)
164
-
165
- print(f"Network: {G.number_of_nodes()} individuals, "
166
- f"{G.number_of_edges()} connections")
167
- print(f"Most connected: {max(centrality, key=centrality.get)}")
168
- print(f"Most bridging: {max(betweenness, key=betweenness.get)}")
169
-
170
- return G
171
- ```
172
-
173
- ## Spatial Analysis (GIS for Humanities)
174
-
175
- Common applications:
176
- - Mapping historical events or migration patterns
177
- - Georeferencing historical maps
178
- - Spatial analysis of literary settings
179
-
180
- ```python
181
- import folium
182
-
183
- def create_historical_map(events: list, title: str = "Historical Events"):
184
- """Create an interactive map of historical events.
185
-
186
- Args:
187
- events: list of dicts with 'name', 'lat', 'lon', 'date', 'description'
188
- """
189
- center_lat = sum(e["lat"] for e in events) / len(events)
190
- center_lon = sum(e["lon"] for e in events) / len(events)
191
-
192
- m = folium.Map(location=[center_lat, center_lon], zoom_start=5)
193
-
194
- for event in events:
195
- popup = f"<b>{event['name']}</b><br>{event['date']}<br>{event['description']}"
196
- folium.Marker(
197
- location=[event["lat"], event["lon"]],
198
- popup=popup,
199
- tooltip=event["name"]
200
- ).add_to(m)
201
-
202
- m.save(f"{title.replace(' ', '_').lower()}.html")
203
- return m
204
- ```
205
-
206
- ## Key Data Sources for DH
207
-
208
- | Source | Content | Access |
209
- |--------|---------|--------|
210
- | **Project Gutenberg** | 70,000+ free ebooks | gutenberg.org |
211
- | **HathiTrust** | 17M+ digitized volumes | hathitrust.org |
212
- | **Internet Archive** | Books, media, web archives | archive.org |
213
- | **EEBO / ECCO** | Early English books (1475-1800) | Institutional |
214
- | **Perseus Digital Library** | Greek and Latin classics | perseus.tufts.edu |
215
- | **Europeana** | European cultural heritage | europeana.eu |
216
- | **DPLA** | US digital public library | dp.la |
217
- | **Old Bailey Online** | London criminal trials (1674-1913) | oldbaileyonline.org |
218
-
219
- ## Methodological Considerations
220
-
221
- 1. **Close reading still matters**: Computational methods reveal patterns; interpretation requires humanistic expertise
222
- 2. **Corpus bias**: Digitized collections over-represent certain periods, languages, and genres
223
- 3. **OCR quality**: Historical texts often have high OCR error rates — validate before analysis
224
- 4. **Anachronism**: Modern NLP tools may misinterpret historical language use
225
- 5. **Interdisciplinary collaboration**: Best DH work pairs domain expertise with technical skills
226
-
227
- ## References
228
-
229
- - Moretti, F. (2013). *Distant Reading*. Verso.
230
- - Jockers, M. L. (2013). *Macroanalysis: Digital Methods and Literary History*. University of Illinois Press.
231
- - [Programming Historian](https://programminghistorian.org/) — Free tutorials for DH methods
232
- - [DH Tools Directory](https://dirtdirectory.org/)
@@ -1,190 +0,0 @@
1
- ---
2
- name: legal-research-methods
3
- description: "Systematic legal research methods for case law, statutes, and regulations"
4
- metadata:
5
- openclaw:
6
- emoji: "⚖️"
7
- category: "domains"
8
- subcategory: "law"
9
- keywords: ["legal research", "case law", "statute analysis", "legal databases", "regulatory analysis", "legal methodology"]
10
- source: "https://clawhub.ai/legal-research"
11
- ---
12
-
13
- # Legal Research Methods
14
-
15
- ## Overview
16
-
17
- Legal research involves finding and analyzing primary legal authorities (case law, statutes, regulations) and secondary sources (treatises, law reviews, restatements) to answer legal questions. This guide covers systematic research methodologies, major free and commercial databases, citation practices, and analysis frameworks used in both legal practice and law and economics scholarship.
18
-
19
- ## Legal Source Hierarchy
20
-
21
- | Authority | Type | Weight | Examples |
22
- |-----------|------|--------|---------|
23
- | **Constitutional provisions** | Primary, mandatory | Highest | U.S. Constitution, Basic Law |
24
- | **Statutes / Legislation** | Primary, mandatory | Very high | USC (federal), state codes |
25
- | **Administrative regulations** | Primary, mandatory | High | CFR (federal), agency rules |
26
- | **Case law (binding)** | Primary, mandatory | High | Supreme Court, circuit court (same circuit) |
27
- | **Case law (persuasive)** | Primary, persuasive | Moderate | Other circuits, state courts, foreign courts |
28
- | **Legislative history** | Secondary, persuasive | Moderate | Committee reports, floor debates |
29
- | **Treatises** | Secondary, persuasive | Moderate | Prosser on Torts, Corbin on Contracts |
30
- | **Law review articles** | Secondary, persuasive | Low-Moderate | Peer commentary, novel arguments |
31
- | **Restatements** | Secondary, persuasive | Moderate | ALI Restatements (Torts, Contracts) |
32
- | **Legal encyclopedias** | Secondary, reference | Low | Am Jur 2d, CJS |
33
-
34
- ## Free Legal Databases
35
-
36
- | Database | Coverage | URL | Best For |
37
- |----------|----------|-----|---------|
38
- | **Google Scholar** (Case Law) | US federal + state opinions | scholar.google.com | Quick case search, citation checking |
39
- | **CourtListener** | 8M+ opinions, PACER filings | courtlistener.com | Federal litigation, RECAP archive |
40
- | **Caselaw Access Project** | 6.9M US cases (Harvard Law) | case.law | Historical research, bulk analysis |
41
- | **Congress.gov** | Federal bills and laws | congress.gov | Legislative history |
42
- | **GovInfo** | CFR, Federal Register, USC | govinfo.gov | Regulations, statutory text |
43
- | **Cornell LII** | USC, CFR, Supreme Court | law.cornell.edu | Statutory lookup, Wex definitions |
44
- | **Justia** | Federal + state cases, codes | justia.com | Free comprehensive search |
45
- | **SSRN** | Working papers | ssrn.com | Legal scholarship preprints |
46
- | **HeinOnline** | Law reviews (institutional) | heinonline.org | Historical law journals |
47
-
48
- ## Research Methodology
49
-
50
- ### The IRAC Framework
51
-
52
- For analyzing legal questions:
53
-
54
- ```
55
- Issue: What is the legal question?
56
- Rule: What law (statute, case, regulation) governs this issue?
57
- Application: How does the rule apply to the specific facts?
58
- Conclusion: What is the likely outcome?
59
- ```
60
-
61
- ### Systematic Case Research Process
62
-
63
- ```markdown
64
- Step 1: Identify the Legal Issue
65
- - Frame as a specific, answerable question
66
- - Identify jurisdiction (federal, state, international)
67
- - Identify area of law (contract, tort, constitutional, regulatory)
68
-
69
- Step 2: Find Controlling Statutes
70
- - Search USC (federal) or state code for relevant provisions
71
- - Read the full statutory section, not just the key subsection
72
- - Check for recent amendments (currency)
73
- - Note any implementing regulations (CFR)
74
-
75
- Step 3: Find Leading Cases
76
- - Start with secondary sources (treatise, ALR annotation) for overview
77
- - Use headnotes/key numbers to find on-point cases
78
- - Prioritize: Supreme Court > Circuit Court > District Court
79
- - Prioritize: Recent > Older (unless seminal)
80
-
81
- Step 4: Expand Through Citation Networks
82
- - Forward: Who cited this case? (Citator / "Cited by")
83
- - Backward: What does this case cite? (Footnotes)
84
- - Negative treatment: Was this case overruled or distinguished?
85
-
86
- Step 5: Verify Currency (Shepardize/KeyCite)
87
- - Check if cases are still good law
88
- - Check for legislative amendments to statutes
89
- - Check for new regulations affecting the area
90
-
91
- Step 6: Synthesize and Analyze
92
- - Identify the majority rule vs. minority rule
93
- - Note circuit splits
94
- - Distinguish binding vs. persuasive authority
95
- - Identify trends in recent decisions
96
- ```
97
-
98
- ### Boolean Search Syntax for Legal Databases
99
-
100
- ```
101
- Westlaw: "due process" /s "property right" & date(aft 2020)
102
- Lexis: "due process" w/s "property right" AND date aft 2020
103
- Google Scholar: "due process" "property right" (with case law checkbox)
104
- CourtListener: "due process" AND "property right" filed_after:2020-01-01
105
- ```
106
-
107
- | Operator | Westlaw | Lexis | Google Scholar |
108
- |----------|---------|-------|---------------|
109
- | AND | & | AND | (implicit) |
110
- | OR | (space) | OR | OR |
111
- | NOT | but not | AND NOT | - (minus) |
112
- | Phrase | "exact phrase" | "exact phrase" | "exact phrase" |
113
- | Within sentence | /s | w/s | N/A |
114
- | Within paragraph | /p | w/p | N/A |
115
- | Proximity | /n (within n words) | w/n | N/A |
116
-
117
- ## Empirical Legal Research
118
-
119
- For law and economics / quantitative legal studies:
120
-
121
- ### Common Data Sources
122
-
123
- | Source | Coverage | Format | Research Use |
124
- |--------|----------|--------|-------------|
125
- | **Federal Judicial Center** | Federal court statistics | CSV | Case processing times, judicial behavior |
126
- | **PACER / RECAP** | Federal docket data | PDF/XML | Litigation patterns, filing trends |
127
- | **Caselaw Access Project API** | 6.9M case opinions | JSON API | Text analysis, citation networks |
128
- | **SEC EDGAR** | Corporate filings | XBRL/HTML | Securities regulation, corporate governance |
129
- | **BLS / Census** | Economic data | CSV | Regulatory impact analysis |
130
-
131
- ### Citation Network Analysis
132
-
133
- ```python
134
- # Using CourtListener API for citation analysis
135
- import requests
136
-
137
- BASE_URL = "https://www.courtlistener.com/api/rest/v3"
138
-
139
- def get_case_citations(case_id: str) -> dict:
140
- """Get citing and cited cases for a given opinion."""
141
- # Get case details
142
- resp = requests.get(f"{BASE_URL}/opinions/{case_id}/",
143
- params={"fields": "citations,citing"})
144
- return resp.json()
145
-
146
- def build_citation_network(seed_case: str, depth: int = 2):
147
- """Build citation network from a seed case."""
148
- network = {"nodes": set(), "edges": []}
149
- queue = [(seed_case, 0)]
150
-
151
- while queue:
152
- case_id, level = queue.pop(0)
153
- if level >= depth or case_id in network["nodes"]:
154
- continue
155
- network["nodes"].add(case_id)
156
- data = get_case_citations(case_id)
157
- for cited in data.get("citations", []):
158
- network["edges"].append((case_id, cited))
159
- queue.append((cited, level + 1))
160
-
161
- return network
162
- ```
163
-
164
- ## Legal Citation Format (Bluebook)
165
-
166
- ```
167
- Cases:
168
- Brown v. Board of Education, 347 U.S. 483 (1954).
169
- [Case Name], [Volume] [Reporter] [Page] ([Court] [Year]).
170
-
171
- Statutes:
172
- 42 U.S.C. § 1983 (2018).
173
- [Title] [Code] § [Section] ([Year]).
174
-
175
- Law Reviews:
176
- Cass R. Sunstein, On the Expressive Function of Law, 144 U. Pa. L. Rev. 2021 (1996).
177
- [Author], [Title], [Volume] [Journal] [Page] ([Year]).
178
-
179
- Regulations:
180
- 17 C.F.R. § 240.10b-5 (2023).
181
- [Title] C.F.R. § [Section] ([Year]).
182
- ```
183
-
184
- ## References
185
-
186
- - [CourtListener API](https://www.courtlistener.com/help/api/)
187
- - [Caselaw Access Project](https://case.law/)
188
- - [Cornell Legal Information Institute](https://www.law.cornell.edu/)
189
- - [The Bluebook: A Uniform System of Citation](https://www.legalbluebook.com/)
190
- - Epstein, L., & Martin, A. D. (2014). *An Introduction to Empirical Legal Research*. Oxford UP.
@@ -1,238 +0,0 @@
1
- ---
2
- name: sociology-research-guide
3
- description: "Sociological thinking from observations to rigorous research design"
4
- metadata:
5
- openclaw:
6
- emoji: "🏛️"
7
- category: "domains"
8
- subcategory: "social-science"
9
- keywords: ["sociology", "social theory", "qualitative research", "ethnography", "social stratification", "institutions"]
10
- source: "https://github.com/scolladon/sociological-research-methods"
11
- ---
12
-
13
- # Sociology Research Guide
14
-
15
- ## Overview
16
-
17
- Sociology studies how social structures, institutions, cultures, and interactions shape human behavior and collective life. Unlike psychology (which focuses on the individual) or economics (which focuses on rational choice), sociology examines the meso- and macro-level forces that produce patterns of inequality, solidarity, conflict, and change across societies.
18
-
19
- Sociological research draws on a distinctive methodological toolkit: ethnography, in-depth interviews, survey analysis, content analysis, historical-comparative methods, and increasingly computational social science. The discipline's strength lies in its ability to make the familiar strange -- revealing the social forces behind phenomena that seem natural or inevitable.
20
-
21
- This guide covers the core theoretical frameworks, research design strategies, and analytical methods that define rigorous sociological inquiry. It is designed for researchers who need to ground their work in sociological thinking, whether they are designing a study, reviewing literature, or integrating sociological perspectives into interdisciplinary projects.
22
-
23
- ## Core Theoretical Frameworks
24
-
25
- ### Classical Foundations
26
-
27
- | Theorist | Key Concept | Research Application |
28
- |----------|-------------|---------------------|
29
- | Marx | Class conflict, mode of production | Economic inequality, labor markets, ideology |
30
- | Durkheim | Social facts, collective consciousness | Social solidarity, anomie, institutions |
31
- | Weber | Ideal types, rationalization, Verstehen | Bureaucracy, culture, interpretive methods |
32
- | Simmel | Social forms, dyads/triads | Network structure, stranger, metropolis |
33
-
34
- ### Contemporary Frameworks
35
-
36
- | Framework | Key Thinkers | Core Idea |
37
- |-----------|-------------|-----------|
38
- | Structural functionalism | Parsons, Merton | Society as system, functional prerequisites |
39
- | Conflict theory | Wright, Domhoff | Power, inequality, resource competition |
40
- | Symbolic interactionism | Blumer, Goffman | Meaning-making, self-presentation, micro-order |
41
- | Bourdieusian sociology | Bourdieu | Capital (economic, cultural, social), habitus, field |
42
- | Institutional theory | DiMaggio, Powell | Isomorphism, legitimacy, organizational fields |
43
- | Intersectionality | Crenshaw, Collins | Interlocking systems of race, class, gender |
44
- | World-systems theory | Wallerstein | Core-periphery, global division of labor |
45
-
46
- ### Bourdieu's Capital Framework
47
-
48
- ```
49
- Economic capital → Material resources (money, property)
50
- Cultural capital → Knowledge, skills, credentials
51
- ├── Embodied: Dispositions, tastes, linguistic competence
52
- ├── Objectified: Books, art, instruments
53
- └── Institutionalized: Degrees, certifications
54
- Social capital → Networks, relationships, group membership
55
- Symbolic capital → Prestige, recognition, honor
56
-
57
- Key dynamics:
58
- - Capital is convertible (economic → cultural via education)
59
- - Field = arena of competition for specific capital
60
- - Habitus = internalized dispositions from social position
61
- - Practice = (Habitus × Capital) + Field
62
- ```
63
-
64
- ## Research Design in Sociology
65
-
66
- ### Qualitative Research Methods
67
-
68
- #### Ethnography
69
-
70
- ```
71
- Ethnographic research design template:
72
-
73
- 1. SITE SELECTION
74
- - Theoretical sampling: Choose sites that illuminate your question
75
- - Access negotiation: Gatekeepers, IRB approval, informed consent
76
- - Duration: Minimum 6 months for credible ethnography
77
-
78
- 2. DATA COLLECTION
79
- - Participant observation: Field notes (descriptive + analytic)
80
- - In-depth interviews: Semi-structured, 60-90 minutes
81
- - Document analysis: Organizational records, media, archives
82
- - Visual methods: Photography, video, spatial mapping
83
-
84
- 3. FIELD NOTE PROTOCOL
85
- - Write within 24 hours of observation
86
- - Separate description from interpretation
87
- - Record sensory details, dialogue, spatial arrangements
88
- - Note your own positionality and emotional responses
89
-
90
- 4. ANALYSIS
91
- - Open coding → focused coding → theoretical coding
92
- - Memo writing throughout (minimum weekly)
93
- - Negative case analysis: Seek disconfirming evidence
94
- - Member checking: Share interpretations with participants
95
- ```
96
-
97
- #### Interview Research
98
-
99
- ```
100
- Semi-structured interview design:
101
-
102
- INTERVIEW GUIDE STRUCTURE:
103
- 1. Opening (5 min): Rapport building, project overview, consent
104
- 2. Grand tour question: "Tell me about your experience with..."
105
- 3. Thematic probes (40-60 min):
106
- - Descriptive: "Walk me through a typical day at..."
107
- - Structural: "How would you categorize different types of..."
108
- - Contrast: "How does X differ from Y in your experience?"
109
- - Evaluative: "What do you think about the changes in..."
110
- 4. Closing (5 min): "Is there anything I should have asked?"
111
-
112
- SAMPLING:
113
- - Purposive sampling: Maximize variation on key dimensions
114
- - Snowball sampling: For hard-to-reach populations
115
- - Theoretical sampling: Continue until saturation
116
- - Target: 20-40 interviews for a journal article
117
- ```
118
-
119
- ### Quantitative Research Methods
120
-
121
- #### Survey Design for Sociological Research
122
-
123
- ```python
124
- # Example: Measuring social capital using the Position Generator
125
- # (Lin & Dumin, 1986)
126
-
127
- social_capital_items = {
128
- "occupation_access": [
129
- "Do you know someone who is a lawyer?",
130
- "Do you know someone who is a professor?",
131
- "Do you know someone who is a CEO?",
132
- "Do you know someone who is a nurse?",
133
- "Do you know someone who is a mechanic?",
134
- "Do you know someone who is a factory worker?",
135
- ],
136
- "relationship_type": ["family", "friend", "acquaintance"],
137
- }
138
-
139
- # Scoring
140
- def compute_social_capital_index(responses: dict) -> dict:
141
- """
142
- Compute social capital metrics from Position Generator data.
143
- """
144
- accessed_prestige = []
145
- for occupation, known in responses["occupation_access"].items():
146
- if known:
147
- accessed_prestige.append(OCCUPATION_PRESTIGE[occupation])
148
-
149
- return {
150
- "upper_reachability": max(accessed_prestige) if accessed_prestige else 0,
151
- "range": max(accessed_prestige) - min(accessed_prestige) if len(accessed_prestige) > 1 else 0,
152
- "diversity": len(accessed_prestige),
153
- "mean_prestige": sum(accessed_prestige) / len(accessed_prestige) if accessed_prestige else 0,
154
- }
155
- ```
156
-
157
- ## Analytical Approaches
158
-
159
- ### Qualitative Data Analysis
160
-
161
- | Method | When to Use | Output |
162
- |--------|-------------|--------|
163
- | Grounded theory | Theory generation from data | Substantive theory with core category |
164
- | Thematic analysis | Pattern identification | Themes with supporting evidence |
165
- | Narrative analysis | Life stories, identity | Plot structures, turning points |
166
- | Discourse analysis | Language and power | Discursive strategies, subject positions |
167
- | Content analysis | Media, documents, archives | Frequency counts + interpretation |
168
- | Process tracing | Historical causation | Causal mechanisms with evidence |
169
-
170
- ### Quantitative Analysis in Sociology
171
-
172
- | Technique | Application in Sociology |
173
- |-----------|------------------------|
174
- | Logistic regression | Social mobility, educational attainment |
175
- | Multilevel models | Neighborhood effects, organizational contexts |
176
- | Event history analysis | Marriage, job transitions, mortality |
177
- | Structural equation modeling | Latent constructs (alienation, trust) |
178
- | Social network analysis | Tie strength, centrality, brokerage |
179
- | Sequence analysis | Life course trajectories |
180
-
181
- ## Writing Sociological Research
182
-
183
- ### Paper Structure
184
-
185
- ```
186
- Sociology article structure (ASR/AJS style):
187
-
188
- ABSTRACT (150-200 words)
189
- - Puzzle or gap
190
- - Theoretical contribution
191
- - Data and methods (one sentence)
192
- - Key findings (1-2 sentences)
193
-
194
- INTRODUCTION (2-3 pages)
195
- - Motivating puzzle or empirical anomaly
196
- - Literature gap
197
- - Theoretical framework preview
198
- - Research question
199
- - Brief methods and findings overview
200
-
201
- THEORY AND LITERATURE (5-8 pages)
202
- - Organize by theoretical debate, not by author
203
- - End each subsection with how your study intervenes
204
- - Derive hypotheses (quantitative) or sensitizing concepts (qualitative)
205
-
206
- DATA AND METHODS (3-5 pages)
207
- - Data source and sampling strategy
208
- - Operationalization of key variables
209
- - Analytical strategy and robustness checks
210
- - Limitations of the data
211
-
212
- FINDINGS (8-12 pages)
213
- - Organized by analytical logic, not chronologically
214
- - Tables and figures with clear interpretation
215
- - Attention to alternative explanations
216
-
217
- DISCUSSION AND CONCLUSION (3-4 pages)
218
- - What did we learn theoretically?
219
- - Limitations and future directions
220
- - Broader implications for the field
221
- ```
222
-
223
- ## Best Practices
224
-
225
- - **Ground your work in theory.** Sociology rewards theoretical contribution over purely empirical findings.
226
- - **Reflexivity matters.** Acknowledge your positionality, especially in qualitative research.
227
- - **Mixed methods strengthen claims.** Combine surveys with interviews, or network analysis with ethnography.
228
- - **Pre-register quantitative studies** on OSF or EGAP to address reviewers' concerns about p-hacking.
229
- - **Engage with inequality.** Sociology's core mission is understanding social inequality -- even technical papers should address distributional implications.
230
- - **Write for the discipline.** Sociological writing prioritizes conceptual clarity over technical sophistication.
231
-
232
- ## References
233
-
234
- - [American Sociological Review](https://journals.sagepub.com/home/asr) -- Top sociology journal
235
- - [American Journal of Sociology](https://www.journals.uchicago.edu/toc/ajs/current) -- Top sociology journal
236
- - Burawoy, M. (2005). For Public Sociology. American Sociological Review, 70(1), 4-28.
237
- - Bourdieu, P. (1984). Distinction: A Social Critique of the Judgement of Taste. Harvard UP.
238
- - Creswell, J. W. & Creswell, J. D. (2018). Research Design: Qualitative, Quantitative, and Mixed Methods. SAGE.