     @output = $('#output')
     @words = {}
     @lookback = lookback
+    @name = $('#corpora-name')
     @chain = new Chain(@lookback)
     $.get dictionary, {}, (data) =>
       @dictionary = data.split('\n') if dictionary

  #
  makeWord: (original) =>
    word = ""
    key = []
    key.push startWord for i in [@lookback..1]
    while not char and char != ' '
      char = @chain.store[key].choice()
    while @chain.store[key] and char != endWord
      word += char unless char == startWord
      key.push char
      key.shift()
      char = if @chain.store[key] then @chain.store[key].choice() else undefined

        if corpora.length > 1
          @loadCorpora(corpora[1..])
        else
          @saveCorpora

  ##
  # Sends the corpora set to the back end
  #
  saveCorpora: () =>
    $.post '/histogram/create',
      chain: @chain
      name: @name.value

  ##
  # Make the words out of the digested corpora.
