Right now im caching the passages by reference (a file gets created with the name “1 Corinthians 1:2-4”, for example). I got some information from ESV.org about downloading an entire copy of the bible which seems to include a custom (?) index of bible content which can be used for querying effectively. Without an index in the plain text bible, might be hard to reliably get the right passages.
After using this plugin myself for a few weeks, I think i’m going to overhaul the way the plugin works due to some unforeseen issues (illegal to have “:” in filenames, on-hover events dont make sense on mobile, etc). When I refactor things, I will think about setting things up in a way that can hook into other sources for the bible (other translations and local copies of the text)