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

        glossary: markovchain.words.to_json
        description: $('#language-description').val()
        (event) =>
          console.log 'success'

    try
      markovChain = new MarkovChain(
        $(corpus).val() for corpus in $('.language-corpus') when $(corpus).val() != '',

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