       return
 
     # Otherwise, must be a string
+    referenceString = referenceString.replace(/\./g,'')
     if typeof referenceString isnt 'string'
       throw new Error("Unable to parse #{referenceString}: must be a string")
     if Range.isRange(referenceString)

  toString: ->
    bookName = books[@book].names[0]
    chapterNumber = @chapter
    verseNumber = @verse
    return "#{bookName} #{chapterNumber}:#{verseNumber}"

  # Get the verse id for this reference
  toVerseId: ->

  # Given a string of a book name (shortened or full length), get the book id
  @bookIdFromName: (name) ->
    for book, i in books
      if name.toLowerCase() in (book.names.map (s) -> s.toLowerCase())
        return i
    return -1

  # Given a book id, get the full length book name
