# data.py """ Module containing Bible verses and sample simplified versions. This can be expanded without modifying the main app.py file. """ SAMPLE_VERSES = { "Genesis": { 1: { 1: "In the beginning, God created the heavens and the earth.", 26: "Then God said, 'Let us make man in our image, after our likeness.'" } }, "Exodus": { 20: { 1: "And God spoke all these words, saying,", 12: "Honor your father and your mother, that your days may be long in the land that the Lord your God is giving you." } }, "Psalm": { 23: { 1: "The Lord is my shepherd; I shall not want.", 4: "Even though I walk through the valley of the shadow of death, I will fear no evil, for you are with me; your rod and your staff, they comfort me." }, 119: { 105: "Your word is a lamp to my feet and a light to my path." } }, "Proverbs": { 3: { 5: "Trust in the Lord with all your heart, and do not lean on your own understanding.", 6: "In all your ways acknowledge him, and he will make straight your paths." } }, "Isaiah": { 40: { 31: "But they who wait for the Lord shall renew their strength; they shall mount up with wings like eagles; they shall run and not be weary; they shall walk and not faint." } }, "Matthew": { 5: { 3: "Blessed are the poor in spirit, for theirs is the kingdom of heaven.", 4: "Blessed are those who mourn, for they shall be comforted.", 5: "Blessed are the meek, for they shall inherit the earth.", 6: "Blessed are those who hunger and thirst for righteousness, for they shall be satisfied.", 9: "Blessed are the peacemakers, for they shall be called sons of God." }, 6: { 33: "But seek first the kingdom of God and his righteousness, and all these things will be added to you." }, 11: { 28: "Come to me, all who labor and are heavy laden, and I will give you rest." } }, "John": { 3: { 16: "For God so loved the world, that he gave his only Son, that whoever believes in him should not perish but have eternal life." }, 14: { 6: "Jesus said to him, 'I am the way, and the truth, and the life. No one comes to the Father except through me.'" } }, "Romans": { 8: { 28: "And we know that for those who love God all things work together for good, for those who are called according to his purpose." } }, "Philippians": { 4: { 6: "Do not be anxious about anything, but in everything by prayer and supplication with thanksgiving let your requests be made known to God.", 13: "I can do all things through him who strengthens me." } }, "Hebrews": { 11: { 1: "Now faith is the assurance of things hoped for, the conviction of things not seen." } }, "James": { 1: { 5: "If any of you lacks wisdom, let him ask God, who gives generously to all without reproach, and it will be given him." } }, "1 John": { 4: { 19: "We love because he first loved us." } } } SAMPLE_SIMPLIFICATIONS = { "Genesis 1:1": "Before anything else existed, God made the entire universe—the sky, stars, planets, and earth.", "Genesis 1:26": "God decided to create humans to be like Him, to reflect His character and nature.", "Exodus 20:1": "God began speaking these important commandments to His people.", "Exodus 20:12": "Show respect and care for your parents, and God will bless you with a long, good life.", "Psalm 23:1": "The Lord takes care of all my needs, just like a shepherd cares for his sheep.", "Psalm 23:4": "Even when I go through really hard and scary times, I won't be afraid because I know God is with me protecting and comforting me.", "Psalm 119:105": "The Bible shows me how to live my life and make good decisions, like a flashlight helps me see where to walk in the dark.", "Proverbs 3:5": "Trust God completely instead of relying only on your own thinking.", "Proverbs 3:6": "Include God in every part of your life, and He will guide you in the right direction.", "Isaiah 40:31": "People who trust in God and wait for His timing will receive new energy and strength. They won't get tired but will keep going with God's power.", "Matthew 5:3": "God blesses people who realize they need Him and depend on Him completely.", "Matthew 5:4": "God comforts and helps those who are sad or grieving.", "Matthew 5:5": "God rewards people who are gentle and humble rather than proud and forceful.", "Matthew 5:6": "God satisfies those who desperately want to do what is right and good.", "Matthew 5:9": "God calls His own children those who work to make peace between people.", "Matthew 6:33": "Make knowing God and living His way your top priority, and He will take care of everything else you need.", "Matthew 11:28": "If you're tired and carrying heavy burdens, come to Jesus and He will give you rest and peace.", "John 3:16": "God loved people so much that He sent His only Son Jesus. Anyone who believes in Him will live forever with God instead of dying separated from Him.", "John 14:6": "Jesus is the only way to know God, the only source of real truth, and the only one who can give us eternal life.", "Romans 8:28": "God works through every situation in the lives of those who love Him, bringing about good results according to His plans.", "Philippians 4:6": "Don't worry about anything. Instead, pray about everything, telling God what you need and thanking Him for what He's done.", "Philippians 4:13": "I can handle anything life throws at me because Jesus gives me the strength to do it.", "Hebrews 11:1": "Faith means being sure about what we hope for and certain about what we can't see yet.", "James 1:5": "If you need wisdom or don't know what to do, ask God, and He will gladly give you the understanding you need.", "1 John 4:19": "We're able to love others because God loved us first and showed us what real love looks like." } def get_books(): """Return sorted list of available books""" return sorted(SAMPLE_VERSES.keys()) def get_chapters(book): """Return sorted list of available chapters for a given book""" if book in SAMPLE_VERSES: return sorted(SAMPLE_VERSES[book].keys()) return [] def get_verses(book, chapter): """Return sorted list of available verses for a given book and chapter""" if book in SAMPLE_VERSES and chapter in SAMPLE_VERSES[book]: return sorted(SAMPLE_VERSES[book][chapter].keys()) return [] def get_verse_text(book, chapter, verse): """Return the original text for a specific verse""" if (book in SAMPLE_VERSES and chapter in SAMPLE_VERSES[book] and verse in SAMPLE_VERSES[book][chapter]): return SAMPLE_VERSES[book][chapter][verse] return None def get_simplified_example(book, chapter, verse): """Return a sample simplification for a verse if available""" ref = f"{book} {chapter}:{verse}" return SAMPLE_SIMPLIFICATIONS.get(ref)