Look up scripture passages directly from the corpus by reference (e.g., "Marcos 9:21", "3 Nefi 17:7", "DyC 76:22-24"). Returns verse text formatted in FCD.
Given one or more scripture references, read the verse text directly from the corpus files and return it formatted in FCD (Formato de Citas para Dilton).
One or more references in standard format:
Marcos 9:21 or Mark 9:213 Nefi 17:7-10 or 3 Nephi 17:7-10DyC 76:22-24 or D&C 76:22-24Génesis 1:1-3 or Genesis 1:1-3Moisés 7:18 or Moses 7:18Multiple references separated by ; — e.g., Marcos 9:21; Juan 21:5; 3 Nefi 17:7
corpus/es/, English → corpus/en/Extract: book name, chapter number, verse start, verse end (optional).
Use the book registry from src/alejandria/ingestion/scripture_meta.py. The mapping (display name → slug → path):
Volumes and paths:
| Volume | ES path | EN path |
|---|---|---|
| Old Testament | corpus/es/scriptures/ot/{book-slug}/{chapter}.txt | corpus/en/scriptures/ot/{book-slug}/{chapter}.txt |
| New Testament | corpus/es/scriptures/nt/{book-slug}/{chapter}.txt | corpus/en/scriptures/nt/{book-slug}/{chapter}.txt |
| Book of Mormon | corpus/es/scriptures/bom/{book-slug}/{chapter}.txt | corpus/en/scriptures/bom/{book-slug}/{chapter}.txt |
| D&C | corpus/es/scriptures/dc/secciones/{section}.txt | corpus/en/scriptures/dc/sections/{section}.txt |
| Pearl of Great Price | corpus/es/scriptures/pgp/{book-slug}/{chapter}.txt | corpus/en/scriptures/pgp/{book-slug}/{chapter}.txt |
Common book name → slug mappings (ES → slug):
| Display name (ES) | Slug | Volume |
|---|---|---|
| Génesis | genesis | ot |
| Éxodo | exodus | ot |
| Salmos | psalms | ot |
| Isaías | isaiah | ot |
| Mateo | matthew | nt |
| Marcos | mark | nt |
| Lucas | luke | nt |
| Juan | john | nt |
| Hechos | acts | nt |
| Romanos | romans | nt |
| Hebreos | hebrews | nt |
| Santiago | james | nt |
| Apocalipsis | revelation | nt |
| 1 Nefi | 1-nephi | bom |
| 2 Nefi | 2-nephi | bom |
| Mosíah | mosiah | bom |
| Alma | alma | bom |
| Helamán | helaman | bom |
| 3 Nefi | 3-nephi | bom |
| 4 Nefi | 4-nephi | bom |
| Mormón | mormon | bom |
| Éter | ether | bom |
| Moroni | moroni | bom |
| DyC | dc (special) | dc |
| Moisés | moses | pgp |
| Abraham | abraham | pgp |
| Artículos de Fe | articles-of-faith | pgp |
For the complete registry of all 80+ books, see src/alejandria/ingestion/scripture_meta.py.
EN display names use the same slugs: Matthew→matthew, Mark→mark, Genesis→genesis, D&C→dc, etc.
Use the Read tool to read the chapter file. Verse format in files: each line starts with the verse number followed by a space:
1 En el principio creó Dios los cielos y la tierra.
2 Y la tierra estaba desordenada y vacía...
9:21): extract line starting with 21 17:7-10): extract lines starting with 7 , 8 , 9 , 10 Salmos 23): extract all numbered lines"Y Jesús preguntó al padre: ¿Cuánto tiempo hace que le sucede esto? Y él dijo: Desde niño." (Marcos 9:21)
Y Jesús preguntó al padre: ¿Cuánto tiempo hace que le sucede esto? Y él dijo: Desde niño. Y muchas veces le echa en el fuego y en el agua, para matarle; pero si puedes hacer algo, ten misericordia de nosotros y ayúdanos. (Marcos 9:21-22)
"Y Jesús preguntó al padre: ¿Cuánto tiempo hace que le sucede esto? Y él dijo: Desde niño." (Marcos 9:21)
"Y les dijo: Hijitos, ¿tenéis algo de comer? Le respondieron: No." (Juan 21:5)