Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c315e87c5 | ||
|
|
8ed71b3ea3 | ||
|
|
9580aa4559 |
@@ -0,0 +1,259 @@
|
||||
# Epistemology and Institutional Prejudice
|
||||
|
||||
## Purpose
|
||||
|
||||
This research track exists to explain a recurring problem in both scholarship and ordinary life: people do not evaluate evidence in a vacuum. They inherit assumptions, trusted authorities, acceptable methods, and social boundaries from the communities and institutions that formed them. Those frameworks can preserve real knowledge, but they can also preserve blind spots, distortions, and durable prejudices.
|
||||
|
||||
This matters for Enoch research because many debates are not only about evidence. They are also about what kinds of evidence are allowed to count, what sources are ruled out too early, what categories are treated as respectable, and what conclusions are treated as suspect before the case is even fully heard.
|
||||
|
||||
The goal of this track is not to dismiss institutions, scholarship, or consensus. The goal is to understand how institutional frameworks shape what people are able to see, what they are trained to ignore, and what they are socially rewarded to defend.
|
||||
|
||||
## Core Thesis
|
||||
|
||||
Institutional prejudice often operates upstream of explicit argument. It appears when a community or institution has already decided, often implicitly, what counts as legitimate evidence, what counts as a serious question, who counts as a trustworthy voice, and what kinds of conclusions are considered respectable.
|
||||
|
||||
In other words, prejudice is not always open hostility. It is often a patterned way of filtering credibility before evaluation is complete.
|
||||
|
||||
## Working Definition
|
||||
|
||||
**Institutional prejudice** is a durable pattern in which a community, guild, or institution systematically treats certain questions, persons, sources, methods, or conclusions as less credible before serious evaluation is complete.
|
||||
|
||||
This can happen without overt malice. It can happen through training, habit, inherited models, disciplinary norms, and prestige structures.
|
||||
|
||||
## Why This Track Belongs in the Portfolio
|
||||
|
||||
This track is essential because many disputes around Enoch, Second Temple literature, canon, inspiration, and authority are not settled merely by quoting more texts. They are shaped by prior judgments such as:
|
||||
|
||||
- what counts as an authoritative source
|
||||
- what counts as a legitimate background text
|
||||
- what counts as acceptable dependence
|
||||
- what counts as “real” scriptural usage
|
||||
- what counts as a respectable theological conclusion
|
||||
- what counts as an anomaly worth taking seriously
|
||||
|
||||
If these prior judgments are left unexamined, then entire lines of evidence can be downgraded before they are considered.
|
||||
|
||||
## Main Conceptual Pillars
|
||||
|
||||
### 1. Paradigms and anomaly management
|
||||
|
||||
Thomas Kuhn is useful here because he explains that communities do not merely hold isolated beliefs. They operate within larger frameworks, or paradigms, that define:
|
||||
|
||||
- the important questions
|
||||
- the accepted methods
|
||||
- the standard examples of good work
|
||||
- the legitimate forms of explanation
|
||||
- the boundaries of serious discourse
|
||||
|
||||
Within such a framework, anomalies are often not welcomed as opportunities for truth-seeking. They are more often minimized, reclassified, or quarantined. A community may say, in effect, “serious people do not think about the problem that way.”
|
||||
|
||||
This is directly relevant to institutional prejudice because inconvenient evidence is often not refuted first. It is often lowered in status first.
|
||||
|
||||
### 2. Properly basic belief and foundational assumptions
|
||||
|
||||
This area should be anchored primarily in **Alvin Plantinga**, with **William Lane Craig** serving as a secondary and more accessible apologetic bridge where useful.
|
||||
|
||||
The key point is that not all rational belief begins with an explicit chain of proofs. Some beliefs function as foundational or properly basic. The important issue is not whether people have starting points. Everyone does. The real issue is whether those starting points are acknowledged, examined, and handled honestly.
|
||||
|
||||
This matters because institutions often behave as though only their own foundational assumptions are neutral, while rival assumptions are labeled biased, uncritical, or irrational. That is itself a form of concealed prejudice.
|
||||
|
||||
### 3. Testimony, authority, and mediated knowledge
|
||||
|
||||
Most human knowledge comes through testimony. People know history, science, law, medicine, and theology largely because they trust witnesses, teachers, institutions, and preserved traditions.
|
||||
|
||||
So the problem is not whether people rely on authority. Everyone does. The real question is:
|
||||
|
||||
- which authorities are trusted
|
||||
- why they are trusted
|
||||
- how authority is ranked
|
||||
- when alternative testimony is dismissed too early
|
||||
|
||||
This is highly relevant to Enoch research, because the question is often not merely “what does the text say?” but “what kind of witness is this text permitted to be?”
|
||||
|
||||
### 4. Tradition-shaped understanding
|
||||
|
||||
Readers do not approach texts as blank slates. They inherit pre-judgments, habits, doctrinal categories, and institutional expectations. Some of these are useful and necessary. Others distort perception.
|
||||
|
||||
This distinction is important. The claim is not that all pre-judgment is bad. The claim is that some pre-judgments become so entrenched that they prevent fair hearing.
|
||||
|
||||
### 5. Worldview-shaped evidence
|
||||
|
||||
Evidence does not interpret itself. Two people can encounter the same datum and classify it differently because they are operating inside different conceptual worlds.
|
||||
|
||||
This means that debates are often not merely over facts, but over:
|
||||
|
||||
- relevance
|
||||
- category
|
||||
- weight
|
||||
- legitimacy
|
||||
- interpretive frame
|
||||
|
||||
For this reason, a community may be quite sincere and still be institutionally prejudiced.
|
||||
|
||||
## Lay-Level Explanation
|
||||
|
||||
A simple way to explain this to non-specialists is:
|
||||
|
||||
People often imagine that institutions gather evidence and then form conclusions. In reality, institutions also teach people what counts as evidence in the first place.
|
||||
|
||||
A hospital may teach its staff what symptoms are “real” and which are probably exaggerated.
|
||||
A school may teach its teachers which questions are intelligent and which are distractions.
|
||||
A church may teach its members which texts are safe to quote and which questions sound dangerous.
|
||||
A scholarly guild may teach researchers which sources are respectable and which ones are too fringe to matter.
|
||||
|
||||
In each case, the problem is not merely ignorance. The problem is that the system has already assigned credibility in advance.
|
||||
|
||||
That is why institutional prejudice is often hard to spot. It feels normal to the people inside it.
|
||||
|
||||
## Balanced Clarification
|
||||
|
||||
This track must avoid crude anti-institutionalism.
|
||||
|
||||
Institutions are not merely engines of suppression. They preserve knowledge, standards, languages, methods, archives, and memory. Without them, much truth would be lost.
|
||||
|
||||
But the same structures that preserve knowledge can also preserve blind spots. The same systems that teach rigor can also teach selective dismissal. The same consensus that protects against error can also protect inherited prejudice.
|
||||
|
||||
So the aim is not to reject institutions, but to evaluate them with sobriety.
|
||||
|
||||
## Relevance to Enoch Research
|
||||
|
||||
This framework helps explain several recurring problems in Enoch-related debates:
|
||||
|
||||
### A. Why some sources are dismissed before use
|
||||
A text may be excluded from serious consideration not because it has been disproven, but because the institution has already decided what kinds of texts may function as background, authority, or conceptual scaffolding.
|
||||
|
||||
### B. Why anomalies are minimized
|
||||
When New Testament language, theology, or framing appears to align with Enochic concepts, some readers treat that as minor, accidental, or non-substantive because a stronger acknowledgment would create pressure on inherited frameworks.
|
||||
|
||||
### C. Why canon categories are often overextended
|
||||
Some readers collapse “not canon” into “not authoritative in any serious sense,” even when the evidence suggests more complex forms of use, dependence, or conceptual inheritance.
|
||||
|
||||
### D. Why certain questions are treated as disreputable
|
||||
A question such as “What role did Enochic tradition play in shaping early Jewish and New Testament thought?” may be treated as suspicious, not because it is weak, but because it threatens settled boundaries.
|
||||
|
||||
### E. Why comparative material is often mishandled
|
||||
The presence of parallels with ancient Near Eastern or Second Temple material is often treated as automatically corrosive rather than as potentially illuminating. This often reveals paradigm defense rather than neutral evaluation.
|
||||
|
||||
## Key Claims to Substantiate
|
||||
|
||||
The following claims should be developed carefully and sourced well:
|
||||
|
||||
1. People do not evaluate evidence from nowhere; they inherit interpretive frameworks.
|
||||
2. Institutions formalize and reward certain frameworks.
|
||||
3. These frameworks shape what counts as a legitimate question and a credible source.
|
||||
4. Anomalies are often managed rather than welcomed.
|
||||
5. Institutional prejudice can operate without conscious ill will.
|
||||
6. Properly basic beliefs and foundational assumptions are unavoidable.
|
||||
7. The issue is not whether starting points exist, but whether they are acknowledged and fairly examined.
|
||||
8. Most knowledge depends on testimony and authority, so authority-ranking is a central epistemic problem.
|
||||
9. Enoch debates are shaped not only by textual evidence, but by prior institutional judgments about acceptable categories.
|
||||
|
||||
## Suggested Source Roles
|
||||
|
||||
### Thomas Kuhn
|
||||
Use for:
|
||||
- paradigms
|
||||
- normal problem-solving inside a framework
|
||||
- anomaly management
|
||||
- crisis and framework change
|
||||
|
||||
### Alvin Plantinga
|
||||
Use for:
|
||||
- properly basic belief
|
||||
- foundational assumptions
|
||||
- rational belief that is not reducible to proof chains
|
||||
|
||||
### William Lane Craig
|
||||
Use for:
|
||||
- accessible apologetic presentation
|
||||
- rational warrant discussions that lay readers may already know
|
||||
- public-facing bridge material
|
||||
|
||||
### Michael Polanyi
|
||||
Use for:
|
||||
- tacit knowledge
|
||||
- guild-shaped knowing
|
||||
- the role of embodied communal judgment
|
||||
|
||||
### Hans-Georg Gadamer
|
||||
Use for:
|
||||
- pre-judgment
|
||||
- tradition-shaped understanding
|
||||
- the inevitability of interpretive horizons
|
||||
|
||||
### Imre Lakatos
|
||||
Use for:
|
||||
- research programs
|
||||
- protective adjustment around core commitments
|
||||
- a more gradual model than dramatic paradigm collapse
|
||||
|
||||
### Sociology of knowledge / testimony studies
|
||||
Use for:
|
||||
- credibility assignment
|
||||
- gatekeeping
|
||||
- institutional trust structures
|
||||
- the role of witness and community transmission
|
||||
|
||||
## Article and Book Integration Strategy
|
||||
|
||||
This material should not be isolated as a merely theoretical appendix. It should be integrated in three ways.
|
||||
|
||||
### 1. Methodology chapters
|
||||
Use this material early in books or major essays to explain why debates about Enoch, canon, and authority cannot be reduced to “just look at the evidence.”
|
||||
|
||||
### 2. Transitional framing sections
|
||||
When objections appear, pause and explain how the objection may reflect a deeper dispute about what is allowed to count as evidence.
|
||||
|
||||
### 3. Conclusion and application sections
|
||||
Use this track to help readers recognize that institutional prejudice is familiar. They have seen it in workplaces, families, churches, medicine, and education. Once they see it there, they can understand how it operates in scholarship as well.
|
||||
|
||||
## Recommended Lay Analogies
|
||||
|
||||
These should be developed for articles and books:
|
||||
|
||||
- A doctor ignoring symptoms because they do not fit the expected pattern
|
||||
- A teacher dismissing a question because “that is not the subject”
|
||||
- A workplace rejecting a good idea because it came from the wrong employee
|
||||
- A church member being silenced because the question feels unsafe
|
||||
- A guild treating one source as respectable and another as embarrassing before hearing both
|
||||
|
||||
These analogies help ordinary readers recognize that institutional prejudice is not exotic. It is a familiar human pattern.
|
||||
|
||||
## Cautions
|
||||
|
||||
This track should avoid several errors:
|
||||
|
||||
### 1. Do not argue that outsider views are automatically true
|
||||
Marginalization does not prove correctness.
|
||||
|
||||
### 2. Do not argue that consensus is worthless
|
||||
Consensus can preserve real insight and real safeguards.
|
||||
|
||||
### 3. Do not collapse all institutions into bad faith
|
||||
Often the problem is framework inheritance, not overt malice.
|
||||
|
||||
### 4. Do not use epistemology as a substitute for evidence
|
||||
This track is not an excuse to ignore textual, historical, or linguistic work. It is a lens for understanding how evidence is handled.
|
||||
|
||||
## Immediate Research Questions
|
||||
|
||||
1. How does Kuhn’s notion of anomaly management illuminate biblical studies and canon debates?
|
||||
2. How can Plantinga’s properly basic belief help expose concealed institutional starting points?
|
||||
3. How should testimony and authority be treated in disputes over Enochic influence?
|
||||
4. What examples show institutional prejudice operating in scholarship without explicit hostility?
|
||||
5. How can lay readers be taught to identify institutional prejudice without becoming cynical or anti-intellectual?
|
||||
|
||||
## Proposed Output Targets
|
||||
|
||||
- One portfolio essay introducing institutional prejudice for lay readers
|
||||
- One article on Kuhn and anomaly handling in biblical scholarship
|
||||
- One article on properly basic belief and hidden institutional assumptions
|
||||
- One article on testimony, authority, and why “not canon” does not settle every question
|
||||
- One recurring methodology section for books and long essays
|
||||
- One simplified reader-facing appendix: “How institutions teach people what to see”
|
||||
|
||||
## Summary Statement
|
||||
|
||||
This track argues that the struggle over Enoch is not merely a struggle over texts. It is also a struggle over epistemic permission: what readers are allowed to notice, what sources are permitted to matter, what anomalies are allowed to trouble settled models, and what conclusions institutions have already trained people to resist.
|
||||
|
||||
To understand that struggle well, we must study not only texts and doctrines, but also paradigms, starting points, authority structures, and the hidden prejudices of institutions.
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
# Article Integration Map
|
||||
|
||||
## Purpose
|
||||
|
||||
This file maps where the epistemology / institutional prejudice framework should enter articles and books.
|
||||
|
||||
It is meant to prevent the theme from being forgotten or used only in scattered remarks.
|
||||
|
||||
## Primary uses
|
||||
|
||||
### 1. Methodology sections
|
||||
Use this track early in major essays or books to explain that disputes are not only about evidence, but also about frameworks.
|
||||
|
||||
### 2. Transitional sections
|
||||
When objections arise, use this track to explain that some objections reflect prior judgments about what kinds of evidence are allowed to count.
|
||||
|
||||
### 3. Conclusion sections
|
||||
Use this track to help readers connect scholarly filtering with the ordinary institutional prejudice they already recognize in daily life.
|
||||
|
||||
## Strongest article targets
|
||||
|
||||
### A. Articles on canon and authority
|
||||
Use this track to explain:
|
||||
- why “not canon” is often treated as the end of discussion
|
||||
- why authority and use are more complicated than that
|
||||
- how institutional assumptions pre-sort texts into acceptable and unacceptable categories
|
||||
|
||||
### B. Articles on Enoch in relation to the New Testament
|
||||
Use this track to explain:
|
||||
- why conceptual dependence is often minimized
|
||||
- why anomalies are downgraded
|
||||
- why some uses of Enochic tradition are treated as incidental instead of substantive
|
||||
|
||||
### C. Articles on inspiration and hermeneutics
|
||||
Use this track to explain:
|
||||
- why crude models of inspiration distort reading
|
||||
- why texts must be read on their own terms
|
||||
- why inherited doctrinal packaging can obscure what is actually present
|
||||
|
||||
### D. Articles on comparative material
|
||||
Use this track to explain:
|
||||
- why parallels with ANE or Second Temple sources often trigger defensive reactions
|
||||
- why similarity is not automatically corruption
|
||||
- why institutional fear of contamination can impair honest reading
|
||||
|
||||
## Book-level integration
|
||||
|
||||
## Early chapter
|
||||
Include a methodology chapter covering:
|
||||
- assumptions
|
||||
- testimony
|
||||
- authority
|
||||
- paradigms
|
||||
- anomaly management
|
||||
- institutional filtering
|
||||
|
||||
## Mid-book reminders
|
||||
Use short reminders when a major anomaly appears and is likely to be resisted for institutional rather than textual reasons.
|
||||
|
||||
## End-of-book reflection
|
||||
Show readers that the issue is not only textual interpretation but epistemic permission:
|
||||
what readers are allowed to see, ask, and conclude.
|
||||
|
||||
## Reusable themes
|
||||
|
||||
- evidence is not self-interpreting
|
||||
- institutions rank credibility in advance
|
||||
- anomalies are often managed before they are evaluated
|
||||
- “serious scholarship” can sometimes function as a gatekeeping label rather than a neutral description
|
||||
- people inherit frameworks before they inherit arguments
|
||||
|
||||
## Notes for future drafting
|
||||
|
||||
This framework should remain balanced.
|
||||
Do not use it as a shortcut around evidence.
|
||||
Use it to explain how evidence is filtered, not to replace close argument.
|
||||
@@ -0,0 +1,36 @@
|
||||
# Epistemology and Institutional Prejudice
|
||||
|
||||
## Purpose
|
||||
|
||||
This research track studies how institutions shape what counts as evidence, what questions are respectable, what authorities are trusted, and what anomalies are ignored or minimized.
|
||||
|
||||
It exists to support the broader research portfolio by explaining why disputes are often not merely about facts, but about frameworks, credibility assignment, and inherited assumptions.
|
||||
|
||||
## Scope
|
||||
|
||||
This track will especially support work on:
|
||||
|
||||
- Enoch and Second Temple literature
|
||||
- canon and authority
|
||||
- inspiration and hermeneutics
|
||||
- institutional filtering of evidence
|
||||
- anomaly management in scholarship
|
||||
- lay explanation of prejudice embedded in systems
|
||||
|
||||
## Core Idea
|
||||
|
||||
Institutional prejudice often appears before formal argument. It works by assigning credibility in advance.
|
||||
|
||||
## Current Files
|
||||
|
||||
- `LAY_EXPLANATION.md`
|
||||
- `ARTICLE_INTEGRATION_MAP.md`
|
||||
- `SOURCES.md`
|
||||
|
||||
## Planned Dossiers
|
||||
|
||||
- Kuhn and paradigm / anomaly management
|
||||
- Properly basic belief and hidden assumptions
|
||||
- Testimony and authority
|
||||
- Institutional prejudice as credibility filtering
|
||||
- Worldview-shaped evidence
|
||||
@@ -0,0 +1,75 @@
|
||||
# Lay Explanation
|
||||
|
||||
## Plain-language summary
|
||||
|
||||
People often imagine that institutions gather evidence first and then form conclusions.
|
||||
|
||||
In reality, institutions also teach people what counts as evidence in the first place.
|
||||
|
||||
They teach:
|
||||
- what questions are serious
|
||||
- what sources are respectable
|
||||
- what methods are legitimate
|
||||
- what conclusions are safe
|
||||
- what anomalies can be ignored
|
||||
|
||||
That means prejudice does not always look like open hostility. Sometimes it looks like a system that quietly treats certain people, questions, or sources as less credible before evaluation is complete.
|
||||
|
||||
## Simple definition
|
||||
|
||||
**Institutional prejudice** is a durable pattern in which a group or institution treats some questions, persons, methods, or sources as less credible before serious evaluation is complete.
|
||||
|
||||
## Everyday examples
|
||||
|
||||
### Medicine
|
||||
A patient says something is wrong, but the report is discounted because it does not fit the standard model.
|
||||
|
||||
### Education
|
||||
A student asks an important question, but the teacher treats it as a distraction because it does not fit the accepted lesson frame.
|
||||
|
||||
### Workplaces
|
||||
A good idea is ignored because it came from the wrong person or department.
|
||||
|
||||
### Churches
|
||||
A sincere question is treated as dangerous because it sounds unfamiliar or threatens inherited assumptions.
|
||||
|
||||
## Why this matters for research
|
||||
|
||||
The same thing can happen in scholarship.
|
||||
|
||||
A field can decide in advance:
|
||||
- what sources are too fringe to matter
|
||||
- what comparisons are embarrassing
|
||||
- what questions are disreputable
|
||||
- what conclusions serious people are not supposed to reach
|
||||
|
||||
This is why evidence alone does not settle every dispute. Evidence is interpreted through a framework.
|
||||
|
||||
## Why this matters for Enoch research
|
||||
|
||||
Enoch debates are often not only about texts.
|
||||
|
||||
They are also about:
|
||||
- what kinds of texts are allowed to matter
|
||||
- whether Second Temple material is permitted to illuminate Scripture
|
||||
- whether non-canonical works may still be conceptually important
|
||||
- whether anomalies in the New Testament are allowed to trouble inherited models
|
||||
|
||||
## Balanced caution
|
||||
|
||||
This does **not** mean:
|
||||
- institutions are always wrong
|
||||
- outsiders are always right
|
||||
- consensus is worthless
|
||||
|
||||
Institutions preserve real knowledge.
|
||||
|
||||
But the same systems that preserve knowledge can also preserve blind spots.
|
||||
|
||||
## Key takeaway
|
||||
|
||||
The issue is not whether people have assumptions.
|
||||
|
||||
Everyone does.
|
||||
|
||||
The real issue is whether those assumptions are acknowledged and whether institutions allow awkward evidence to be heard fairly.
|
||||
@@ -0,0 +1,71 @@
|
||||
# Sources
|
||||
|
||||
## Core sources to add
|
||||
|
||||
### Thomas Kuhn
|
||||
Use for:
|
||||
- paradigms
|
||||
- normal science / normal problem-solving
|
||||
- anomaly management
|
||||
- crisis and framework change
|
||||
|
||||
### Alvin Plantinga
|
||||
Use for:
|
||||
- properly basic belief
|
||||
- foundational assumptions
|
||||
- rational belief not reducible to explicit proof chains
|
||||
|
||||
### William Lane Craig
|
||||
Use for:
|
||||
- accessible apologetic bridge material
|
||||
- public-facing discussions of warranted belief and rational theism
|
||||
|
||||
### Michael Polanyi
|
||||
Use for:
|
||||
- tacit knowledge
|
||||
- personal participation in knowing
|
||||
- community-shaped standards of judgment
|
||||
|
||||
### Hans-Georg Gadamer
|
||||
Use for:
|
||||
- pre-judgment
|
||||
- tradition-shaped understanding
|
||||
- interpretive horizons
|
||||
|
||||
### Imre Lakatos
|
||||
Use for:
|
||||
- research programs
|
||||
- hard core vs auxiliary adjustment
|
||||
- gradual protection of central commitments
|
||||
|
||||
### Testimony / social epistemology sources
|
||||
Use for:
|
||||
- credibility
|
||||
- witness
|
||||
- trust
|
||||
- institutional authority
|
||||
- distribution of knowledge
|
||||
|
||||
## Key concepts to track
|
||||
|
||||
- paradigm
|
||||
- anomaly
|
||||
- crisis
|
||||
- properly basic belief
|
||||
- testimony
|
||||
- authority
|
||||
- institutional prejudice
|
||||
- worldview-shaped evidence
|
||||
- credibility assignment
|
||||
- gatekeeping
|
||||
|
||||
## Notes
|
||||
|
||||
Plantinga should be treated as primary for properly basic belief.
|
||||
Craig may be used as a secondary bridge for lay accessibility, but should not replace Plantinga as the main source on that point.
|
||||
|
||||
This file should later grow into a fuller bibliography with:
|
||||
- publication details
|
||||
- key quotations
|
||||
- short source summaries
|
||||
- relevance notes for article integration
|
||||
Executable
+139
@@ -0,0 +1,139 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="${1:-.}"
|
||||
cd "$ROOT"
|
||||
|
||||
if [[ ! -d sources/video_transcripts ]]; then
|
||||
echo "sources/video_transcripts not found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ ! -d topics ]]; then
|
||||
echo "topics directory not found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python3 <<'PY'
|
||||
from pathlib import Path
|
||||
import re
|
||||
|
||||
root = Path(".")
|
||||
topics_root = root / "topics"
|
||||
sources_root = root / "sources" / "video_transcripts"
|
||||
|
||||
def read_simple_yaml_list_block(text: str, key: str):
|
||||
lines = text.splitlines()
|
||||
out = []
|
||||
in_block = False
|
||||
base_indent = None
|
||||
key_prefix = f"{key}:"
|
||||
for line in lines:
|
||||
if not in_block:
|
||||
if line.strip() == key_prefix:
|
||||
in_block = True
|
||||
base_indent = None
|
||||
continue
|
||||
if not line.strip():
|
||||
continue
|
||||
indent = len(line) - len(line.lstrip(" "))
|
||||
if base_indent is None:
|
||||
base_indent = indent
|
||||
if indent < base_indent:
|
||||
break
|
||||
stripped = line.strip()
|
||||
if stripped.startswith("- "):
|
||||
out.append(stripped[2:].strip())
|
||||
else:
|
||||
break
|
||||
return out
|
||||
|
||||
def read_scalar(text: str, key: str):
|
||||
m = re.search(rf"(?m)^{re.escape(key)}:\s*(.+?)\s*$", text)
|
||||
if not m:
|
||||
return None
|
||||
return m.group(1).strip().strip('"').strip("'")
|
||||
|
||||
def read_source_yaml(path: Path):
|
||||
text = path.read_text(encoding="utf-8")
|
||||
def list_for(block, child):
|
||||
m = re.search(rf"(?ms)^{re.escape(block)}:\s*\n(.*?)(?=^\S|\Z)", text)
|
||||
if not m:
|
||||
return []
|
||||
return read_simple_yaml_list_block(m.group(1), child)
|
||||
|
||||
primary = list_for("topic_bins", "primary")
|
||||
secondary = list_for("topic_bins", "secondary")
|
||||
|
||||
speaker = read_simple_yaml_list_block(text, "speaker")
|
||||
speaker = ", ".join(speaker) if speaker else "UNKNOWN"
|
||||
|
||||
channel = read_scalar(text, "channel") or "UNKNOWN"
|
||||
video_id = read_scalar(text, "video_id") or "UNKNOWN"
|
||||
title = read_scalar(text, "title") or path.parent.name
|
||||
relevance = read_scalar(text, "enoch_relevance") or "unclassified"
|
||||
|
||||
return {
|
||||
"speaker": speaker,
|
||||
"channel": channel,
|
||||
"video_id": video_id,
|
||||
"title": title,
|
||||
"relevance": relevance,
|
||||
"primary": primary,
|
||||
"secondary": secondary,
|
||||
}
|
||||
|
||||
topic_rows = {}
|
||||
|
||||
for topics_yaml in sources_root.rglob("topics.yaml"):
|
||||
video_dir = topics_yaml.parent
|
||||
source_yaml = video_dir / "source.yaml"
|
||||
if not source_yaml.exists():
|
||||
print(f"Skipping {video_dir}: no source.yaml")
|
||||
continue
|
||||
|
||||
source = read_source_yaml(source_yaml)
|
||||
topic_text = topics_yaml.read_text(encoding="utf-8")
|
||||
primary = read_simple_yaml_list_block(topic_text, "primary")
|
||||
secondary = read_simple_yaml_list_block(topic_text, "secondary")
|
||||
relevance = read_scalar(topic_text, "enoch_relevance") or source["relevance"]
|
||||
|
||||
rel_path = video_dir.as_posix()
|
||||
|
||||
for topic in primary + secondary:
|
||||
topic_rows.setdefault(topic, []).append({
|
||||
"speaker": source["speaker"],
|
||||
"channel": source["channel"],
|
||||
"video_id": source["video_id"],
|
||||
"title": source["title"],
|
||||
"relevance": relevance,
|
||||
"path": rel_path,
|
||||
})
|
||||
|
||||
for topic_dir in topics_root.iterdir():
|
||||
if not topic_dir.is_dir():
|
||||
continue
|
||||
topic = topic_dir.name
|
||||
index_path = topic_dir / "INDEX.md"
|
||||
rows = topic_rows.get(topic, [])
|
||||
|
||||
lines = [
|
||||
"# Topic Index",
|
||||
"",
|
||||
"| Speaker | Source | Video ID | Title | Relevance | Path |",
|
||||
"|---|---|---|---|---|---|",
|
||||
]
|
||||
|
||||
def sort_key(r):
|
||||
return (r["speaker"].lower(), r["title"].lower(), r["video_id"].lower())
|
||||
|
||||
for r in sorted(rows, key=sort_key):
|
||||
title = r["title"].replace("|", "\\|")
|
||||
lines.append(
|
||||
f'| {r["speaker"]} | {r["channel"]} | `{r["video_id"]}` | {title} | {r["relevance"]} | `{r["path"]}` |'
|
||||
)
|
||||
|
||||
index_path.write_text("\n".join(lines) + "\n", encoding="utf-8")
|
||||
|
||||
print("Rebuilt topic indices.")
|
||||
PY
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
| Speaker | Source | Video ID | Title | Relevance | Path |
|
||||
|---|---|---|---|---|---|
|
||||
| Michael Heiser | John 14:6 | `6w20yjsLllc` | Why You Misunderstand Biblical Cosmology And Why It's A Big Deal – Michael Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/6w20yjsLllc__why_you_misunderstand_biblical_cosmology_and_why_its_a_big_deal__michael_heiser__part_1` |
|
||||
| "Michael Heiser" | John 14:6 | `6w20yjsLllc` | Why You Misunderstand Biblical Cosmology And Why It's A Big Deal – Michael Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/6w20yjsLllc__why_you_misunderstand_biblical_cosmology_and_why_its_a_big_deal__michael_heiser__part_1` |
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
| Speaker | Source | Video ID | Title | Relevance | Path |
|
||||
|---|---|---|---|---|---|
|
||||
| Michael Heiser | John 14:6 | `6w20yjsLllc` | Why You Misunderstand Biblical Cosmology And Why It's A Big Deal – Michael Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/6w20yjsLllc__why_you_misunderstand_biblical_cosmology_and_why_its_a_big_deal__michael_heiser__part_1` |
|
||||
| Michael Heiser | John 14:6 | `cxHvzrM7wQo` | How to Witness to a Jewish Person About Jesus Using Only the Old Testament – Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/cxHvzrM7wQo__how_to_witness_to_a_jewish_person_about_jesus_using_only_the_old_testament__heiser__part_1` |
|
||||
| "Michael Heiser" | John 14:6 | `cxHvzrM7wQo` | How to Witness to a Jewish Person About Jesus Using Only the Old Testament – Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/cxHvzrM7wQo__how_to_witness_to_a_jewish_person_about_jesus_using_only_the_old_testament__heiser__part_1` |
|
||||
| "Michael Heiser" | John 14:6 | `6w20yjsLllc` | Why You Misunderstand Biblical Cosmology And Why It's A Big Deal – Michael Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/6w20yjsLllc__why_you_misunderstand_biblical_cosmology_and_why_its_a_big_deal__michael_heiser__part_1` |
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
| Speaker | Source | Video ID | Title | Relevance | Path |
|
||||
|---|---|---|---|---|---|
|
||||
| Michael Heiser | John 14:6 | `cxHvzrM7wQo` | How to Witness to a Jewish Person About Jesus Using Only the Old Testament – Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/cxHvzrM7wQo__how_to_witness_to_a_jewish_person_about_jesus_using_only_the_old_testament__heiser__part_1` |
|
||||
| "Michael Heiser" | John 14:6 | `cxHvzrM7wQo` | How to Witness to a Jewish Person About Jesus Using Only the Old Testament – Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/cxHvzrM7wQo__how_to_witness_to_a_jewish_person_about_jesus_using_only_the_old_testament__heiser__part_1` |
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
| Speaker | Source | Video ID | Title | Relevance | Path |
|
||||
|---|---|---|---|---|---|
|
||||
| Michael Heiser | A Seat For Jesus | `mKwtv0Zluvo` | Inspiration of Scripture Explained - Dr. Michael Heiser | contextual_high | `sources/video_transcripts/youtube/a_seat_for_jesus/mKwtv0Zluvo__inspiration_of_scripture_explained__dr_michael_heiser` |
|
||||
| "Michael Heiser" | A Seat For Jesus | `mKwtv0Zluvo` | Inspiration of Scripture Explained - Dr. Michael Heiser | contextual_high | `sources/video_transcripts/youtube/a_seat_for_jesus/mKwtv0Zluvo__inspiration_of_scripture_explained__dr_michael_heiser` |
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
| Speaker | Source | Video ID | Title | Relevance | Path |
|
||||
|---|---|---|---|---|---|
|
||||
| Michael Heiser | John 14:6 | `cxHvzrM7wQo` | How to Witness to a Jewish Person About Jesus Using Only the Old Testament – Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/cxHvzrM7wQo__how_to_witness_to_a_jewish_person_about_jesus_using_only_the_old_testament__heiser__part_1` |
|
||||
| "Michael Heiser" | John 14:6 | `cxHvzrM7wQo` | How to Witness to a Jewish Person About Jesus Using Only the Old Testament – Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/cxHvzrM7wQo__how_to_witness_to_a_jewish_person_about_jesus_using_only_the_old_testament__heiser__part_1` |
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
| Speaker | Source | Video ID | Title | Relevance | Path |
|
||||
|---|---|---|---|---|---|
|
||||
| Michael Heiser | A Seat For Jesus | `mKwtv0Zluvo` | Inspiration of Scripture Explained - Dr. Michael Heiser | contextual_high | `sources/video_transcripts/youtube/a_seat_for_jesus/mKwtv0Zluvo__inspiration_of_scripture_explained__dr_michael_heiser` |
|
||||
| "Michael Heiser" | A Seat For Jesus | `mKwtv0Zluvo` | Inspiration of Scripture Explained - Dr. Michael Heiser | contextual_high | `sources/video_transcripts/youtube/a_seat_for_jesus/mKwtv0Zluvo__inspiration_of_scripture_explained__dr_michael_heiser` |
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
| Speaker | Source | Video ID | Title | Relevance | Path |
|
||||
|---|---|---|---|---|---|
|
||||
| Michael Heiser | John 14:6 | `6w20yjsLllc` | Why You Misunderstand Biblical Cosmology And Why It's A Big Deal – Michael Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/6w20yjsLllc__why_you_misunderstand_biblical_cosmology_and_why_its_a_big_deal__michael_heiser__part_1` |
|
||||
| Michael Heiser | A Seat For Jesus | `mKwtv0Zluvo` | Inspiration of Scripture Explained - Dr. Michael Heiser | contextual_high | `sources/video_transcripts/youtube/a_seat_for_jesus/mKwtv0Zluvo__inspiration_of_scripture_explained__dr_michael_heiser` |
|
||||
| "Michael Heiser" | A Seat For Jesus | `mKwtv0Zluvo` | Inspiration of Scripture Explained - Dr. Michael Heiser | contextual_high | `sources/video_transcripts/youtube/a_seat_for_jesus/mKwtv0Zluvo__inspiration_of_scripture_explained__dr_michael_heiser` |
|
||||
| "Michael Heiser" | John 14:6 | `6w20yjsLllc` | Why You Misunderstand Biblical Cosmology And Why It's A Big Deal – Michael Heiser \| Part 1 | contextual_high | `sources/video_transcripts/youtube/john_14_6/6w20yjsLllc__why_you_misunderstand_biblical_cosmology_and_why_its_a_big_deal__michael_heiser__part_1` |
|
||||
|
||||
Reference in New Issue
Block a user