 fuzzaldrin = require "fuzzaldrin"
 XRegExp = require('xregexp').XRegExp
 titlecaps = require "./titlecaps"
-
+yaml = require "yaml-js"
 
 module.exports =
-class BibtexProvider
+class ReferenceProvider
   ###
   For a while, I intended to continue using XRegExp with this `wordRegex`:
 

    # return provider

  serialize: -> {
    deserializer: 'BibtexProvider'
    data: { bibtex: @bibtex, possibleWords: @possibleWords }
  }

  buildWordList: () =>
    possibleWords = []
    for citation in @bibtex
      if citation.entryTags and citation.entryTags.title and (citation.entryTags.author or citation.entryTags.editor)
        citation.entryTags.prettyTitle =
          @prettifyTitle citation.entryTags.title

      blacklist: ''
      # inclusionPriority: 1 #FIXME hack to prevent default provider in MD file
      # excludeLowerPriority: true
      providerblacklist: '' #TODO Give the user the option to configure this.
      requestHandler: (options) =>
        prefix = @prefixForCursor(options.cursor, options.buffer)

