# [Jelly], <s>80</s> # [Jelly], 66 bytes ḢfØDV+2ị=”JƲo1 Ḳ-ị⁹œṣ⁷x5¤¤ỴḢwɗƇị@Ç{ỴKḲ<”AȦ$€œṗ$Ḣ⁼¥ƇḲṪ¹⁾1:;$f?”:ʋḢK [Try it online!][TIO-lpa6oq6e] [Jelly]: https://github.com/DennisMitchell/jelly [TIO-lpa6oq6e]: https://tio.run/##pVg9jxzHEc3nV3SgzGOBe5REcmlDvjMJ6o4iafAoE1DWs9O709yZ6XX3zA33nIhOFCh0IDtwYssODEeEAZOQ4YCCBdv/4u6PnF9Vdc/uHk@QAW80/VVd9arqVfU@M3W9vrg4e/X7@Te/ufPzH@ydff3Fj88/@93Rty/dJDt79fKHmDh/8fqfvz57/YfzF397/v6br958dfb1X3Fi@PeX336O5Z988/kvMXMfu3@Eo/v/@tM757/6C5348h1sO3/x9zd/xMZXL89e//nN6/MX/5hMb78z/xBbp//5AhvuX1xcPNBdV5lB7U0nNy@eVEY9xOCJCZ1uTNspN1dYVvdtu1BHmArqwBa1yehHu@@5sDK12p/NnC9pU@fUsbY4GQVj32Q6UbS3cG6ZBC5Ma7zurGtp5siEPqifVt6GLuf1IAt39IkteSaLM/uF15Vu3iWxe2mkCrPQnToMWs9uK92W8hmnj/TMFTLNn2m6L3XIaLayQRXedJU37W01mV5X@7SX1uPen1Xaw3ba/Kn2mhR5gnu1Z7FZXJa9d4N3jVzHn3F63@uGhL/HwmmUFhrb6lIXt1mXNIqLD7UOsFzExUFcOtZ141jf91mkjDNZPHDulLR8rGeVjsbznCw/KkzJy31XySLP8GIGbwRDcj8QHGgYz7E/2EFLOFtO7s5FGceudo14rDIeqzhcabrBtLx3sHNDq594qwNddkOMiOdEymNXOB2xlO@EWWG1TNNXmgyaBN0UgINO5rigV7g/RkAcpSBwPl3Anwmf06jVLRKW8XA8oWHNeIYHSQFgfRrVos8UEKdmSeIoEa6xcnEmrj/QLfxqgpxMozE6kvf3N96FEVG/yUR8xBNJQzOrXEvjy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DVEc12bYrrM1oqWNLTg9/Lf7HDlBMZX2O00FmRF08zy2MIMD7WqPMiXOyUC9HEjb/xuO/0oIhrHSbNWOrbrCOCbbBJ1YrAiCjTu2Hg5bPoEf0HmYZrcoZ8kd9F8oFfjHutFb8YDmmthR@B0Uzv@Q8ltUeGRAM8vnCRKhzAbv1pbn6I84ZGfcEx8UfoQ3ShjZo2BCJadIls90H@IblNoybBGjb8XX3NiL8UPD6C1q0O3bzKBGZsi2eWybJGJW79GL8fj/4ImF21SF1NZIi5GaJbEpI62jq0L8Z2k3q88/@21QNTr9d/nvZxV//wU "Jelly – Try It Online" A pair of links that is called as a dyad and that takes the pg10.txt file as its right argument and the required biblical reference as its left argument. TIO fails with the full document (presumably because the POST exceeds the maximum size), and the links to TIO on CGCC are even more limited because of length. However, it should work with the full text if run locally. Pleasingly now code length in bytes == number of books in bible. ## Explanation (outdated) ``` ḢfØDV+2ị=”JƲo1 # Helper link: Takes a bible reference and returns which number book should be used that matches the textual part of the reference; half the code is to handle the John letters Ḣ # Head fØD # Keep only digits V # Evaluate (will be 0 if no digits) + Ʋ # Add the result of the following, applied to the helper link's original argument 2ị=”J # - 1 if the second remaining character is a J, otherwise 0 o1 # Or 1 (replaces 0s with ones) Ḳ-ị⁹œṣ”¶x5¤¤Ỵ€¤Ḣw¥Ƈị@Ç{KœṣḲṪ¹⁾1:;$f?”:ʋ2ịwⱮØD;€”:¤œPƊḢḊ # Main link: takes a bible reference as its argument and returns the verse Ḳ # Split at spaces -ị # Penultimate part (will be the last word of the book title) ⁹ ¤ # Using the following applied to the right argument: œṣ”¶x5¤¤ # - Split at five consecutive newlines Ỵ€ # - Split each at newlines Ḣw¥Ƈ # Keep those where the first line includes the book title word from earlier ị@Ç{ # Index into this using the result of calling the helper link on the original reference (so returning a single book) K # Join with spaces œṣ Ʋ # Split at the substring determined by calling following on the original reference: Ḳ # - Split at spaces Ṫ # - Tail (i.e. the verse or chapter:verse) f?”: # - If contains a colon: ¹ # - Leave as is ⁾1:;$ # - Else: prepend "1:" 2ị # Take the second part (i.e. the bit immediately after the chapter:verse reference) Ɗ # Following as a monad: wⱮØD;€”:¤ # - Find the position of every sublist that comprises of a digit followed by a colon œP # - And split at these ḢḊ # Take the first remaining part, and then remove the first character (which will be the space left just after the original chapter:verse marker) 💎 ``` Created with the help of [Luminespire](https://vyxal.github.io/Luminespire).