       # inclusionPriority: 2
       # excludeLowerPriority: true
 
-      compare: (a,b) ->
+      compare: (a, b) ->
         if a.score < b.score
           return -1
         if a.score > b.score

                rightLabel: word.by
                className: word.type
                iconHTML: '<i class="icon-mortar-board"></i>'
              }
              if word.in?
                suggestion.description = word.in
              if word.url?
                suggestion.descriptionMoreURL = word.url
              suggestions = suggestions.concat suggestion
            resolve(suggestions)

      getPrefix: (editor, bufferPosition) ->

        # Match the regex to the line, and return the match
        line.match(regex)?[0] or ''

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