def generate_scripture_url(verse):
    """Generate a verse's churchofjesuschrist url."""
    to_return = "https://www.churchofjesuschrist.org/study/scriptures/"
    if verse["volume_lds_url"] == "bm":
        to_return += "bofm"
    elif verse["volume_lds_url"] == "dc":
        to_return += "dc-testament"
    else:
        to_return += verse["volume_lds_url"]
    to_return += "/" + verse["book_lds_url"]
    to_return += "/" + str(verse["chapter_number"])
    to_return = to_return + "." + str(verse["verse_number"]) + "?lang=eng#"
    if verse["verse_number"] == 1:
        return to_return + "p1"
    return to_return + str(verse["verse_number"] - 1)