The current Reference parser was written while I was mentally drained and its a mess. There are much better implementations in other languages that inspiration can be drawn from. A few quick examples I found that I'm documenting here for later reference: - https://github.com/TechWilk/bible-verse-parser - https://github.com/openbibleinfo/Bible-Passage-Reference-Parser - https://github.com/eliranwong/bible-verse-parser