       .subscribe successHandler, @displayErrors
 
   doMakeWith: ({ target }) =>
-    editor = target.model
+    editor = @getEditor()
     @saveFile editor
     uri = editor.getURI()
     line = editor.getLastCursor().getBufferRow()
-    word = @getWordUnderCursor target
+    word = @getWordUnderCursor editor
 
     successHandler = ({ responseType, msg }) ->
       [clause] = msg

      .subscribe successHandler, @displayErrors

  doCaseSplit: ({ target }) =>
    editor = target.model
    @saveFile editor
    uri = editor.getURI()
    cursor = editor.getLastCursor()
    line = cursor.getBufferRow()
    word = @getWordUnderCursor target

    successHandler = ({ responseType, msg }) ->
      [split] = msg

      .subscribe successHandler, @displayErrors

  getTypeForWord: ({ target }) =>
    editor = @getEditor()
    uri = editor.getURI()
    word = Symbol.serializeWord @getWordUnderCursor(editor)

    successHandler = ({ responseType, msg }) =>
      [type, highlightingInfo] = msg
