Last active
October 24, 2025 15:54
-
-
Save johndavid400/3492e93e859da9df1b5a405d912df3fc to your computer and use it in GitHub Desktop.
OYB - Conversion prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I need to convert a Bible reading plan to JSON format (do not try to convert anything based on this prompt). | |
| I will be uploading the actual reading plan, but first I am providing a dictionary list to use in the conversion process. | |
| Use the following list as a conversion table from the formal book of the Bible to the 3-letter code that is used for API queries. | |
| For the conversion process, a reference like 'Genesis 1:1-20', should be converted to this format: 'GEN.1.1-GEN.1.20' | |
| Refer to the following list as 'shortcodes': | |
| { | |
| "Genesis" => "GEN", | |
| "Exodus" => "EXO", | |
| "Leviticus" => "LEV", | |
| "Numbers" => "NUM", | |
| "Deuteronomy" => "DEU", | |
| "Joshua" => "JOS", | |
| "Judges" => "JDG", | |
| "Ruth" => "RUT", | |
| "1 Samuel" => "1SA", | |
| "2 Samuel" => "2SA", | |
| "1 Kings" => "1KI", | |
| "2 Kings" => "2KI", | |
| "1 Chronicles" => "1CH", | |
| "2 Chronicles" => "2CH", | |
| "Ezra" => "EZR", | |
| "Nehemiah" => "NEH", | |
| "Esther" => "EST", | |
| "Job" => "JOB", | |
| "Psalms" => "PSA", | |
| "Proverbs" => "PRO", | |
| "Ecclesiastes" => "ECC", | |
| "Song of Solomon" => "SNG", | |
| "Isaiah" => "ISA", | |
| "Jeremiah" => "JER", | |
| "Lamentations" => "LAM", | |
| "Ezekiel" => "EZK", | |
| "Daniel" => "DAN", | |
| "Hosea" => "HOS", | |
| "Joel" => "JOL", | |
| "Amos" => "AMO", | |
| "Obadiah" => "OBA", | |
| "Jonah" => "JON", | |
| "Micah" => "MIC", | |
| "Nahum" => "NAM", | |
| "Habakkuk" => "HAB", | |
| "Zephaniah" => "ZEP", | |
| "Haggai" => "HAG", | |
| "Zechariah" => "ZEC", | |
| "Malachi" => "MAL", | |
| "Matthew" => "MAT", | |
| "Mark" => "MRK", | |
| "Luke" => "LUK", | |
| "John" => "JHN", | |
| "Acts" => "ACT", | |
| "Romans" => "ROM", | |
| "1 Corinthians" => "1CO", | |
| "2 Corinthians" => "2CO", | |
| "Galatians" => "GAL", | |
| "Ephesians" => "EPH", | |
| "Philippians" => "PHP", | |
| "Colossians" => "COL", | |
| "1 Thessalonians" => "1TH", | |
| "2 Thessalonians" => "2TH", | |
| "1 Timothy" => "1TI", | |
| "2 Timothy" => "2TI", | |
| "Titus" => "TIT", | |
| "Philemon" => "PHM", | |
| "Hebrews" => "HEB", | |
| "James" => "JAS", | |
| "1 Peter" => "1PE", | |
| "2 Peter" => "2PE", | |
| "1 John" => "1JN", | |
| "2 John" => "2JN", | |
| "3 John" => "3JN", | |
| "Jude" => "JUD", | |
| "Revelation" => "REV" | |
| } | |
| The format will be broken down by week and day - each day will have 7 sections: Torah, Tanakh, Apostolic, Discussion, BIY 1, BIY 2, and BIY 3. The discussion section is a series of 3 questions that should combined as one section, separated with <p> tags for HTML presentation. | |
| This is an example of the first Day of input: | |
| Week 1-Bereshit (In the Beginning)-Day 1 | |
| Torah: Genesis 1:1-23 (Creation) | |
| Tanakh: Isaiah 45:5-12 (יהוה Alone Creates, Forms Light And Darkness) | |
| Apostolic: John 1:1-18 (Word With יהוה, Word As יהוה, Light And Life) | |
| Discussion / Journaling | |
| 1) How do Isaiah and John affirm יהוה as sole Creator? | |
| 2) What role does Messiah have in creation? | |
| 3) How do you see order vs. chaos? | |
| BIY Track | |
| • Psalm 33:1-11 | |
| • Proverbs 1:1–4 | |
| • Ecclesiastes 1:1–4 | |
| And I want to convert the above data into the following JSON format, creating an array of days, with each day having 7 sections: | |
| [ | |
| {"name" => "Bereshit (In the Beginning)", | |
| "week_number" => 1, | |
| "day_number" => 1, | |
| "sections" => | |
| [ | |
| {"name" => "Torah", "content" => "GEN.1.1-GEN.1.23", "type" => "scripture", "description" => "Creation"}, | |
| {"name" => "Tanakh", | |
| "content" => "ISA.45.5-ISA.45.12", | |
| "type" => "scripture", | |
| "description" => "יהוה Alone Creates, Forms Light And Darkness"}, | |
| {"name" => "Apostolic", | |
| "content" => "JHN.1.1-JHN.1.18", | |
| "type" => "scripture", | |
| "description" => "Word With יהוה, Word As יהוה, Light And Life"}, | |
| {"name" => "Discussion", | |
| "content" => | |
| "<p>1) How do Isaiah and John affirm יהוה as sole Creator?</p><p>2) What role does Messiah have in creation?</p><p>3) How do you see order vs. chaos?</p>", | |
| "type" => "text", | |
| "description" => ""}, | |
| {"name" => "BIY 1", "content" => "PSA.33.1-PSA.33.11", "type" => "scripture"}, | |
| {"name" => "BIY 2", "content" => "PRO.1.1-PRO.1.4", "type" => "scripture"}, | |
| {"name" => "BIY 3", "content" => "ECC.1.1-ECC.1.4", "type" => "scripture"} | |
| ] | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment