Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.28 KB

README.md

File metadata and controls

64 lines (45 loc) · 2.28 KB

doctor.nvim

Have you ever been alone at home, coding in the middle of night, and felt a sudden burst of existential angst? Did you even felt the urge to open that other editor just to feel that the machine could understand and nurture you?

Well, my friend, your problems are over! Now, with a simple ex-command, you can not only share your thoughts with your favorite text editor but also get a proper response from it, finely produced by the best of 1966's artificial intelligence!

But what is this, really?

This is a implementation of Joseph Weizenbaum's ELIZA chatbot embedded in a neovim prompt buffer. It works just like Emacs M-x doctor: you fire up a command and a chat buffer pops up.

A ELIZA bot uses a script that is separate from the implementation to formulate its responses. In the case of this plugin, we are using the original script found on Weizenbaum's paper from 1966 that simulates a Rogerian psychotherapist. (Pull Requests for new scripts are always welcome, by the way!)

Installation

The easiest way to install this plugin is using a plugin manager. For example, with packer.nvim you can run:

use "iagoleal/doctor.nvim"

Usage

Run the command below to open a doctor buffer.

:TalkToTheDoctor

This is a vim prompt buffer and works like a REPL. You can enter anything on the buffer's last line and when you press Return in Insert Mode, the Bot will reply to you on the following line.

References

Important Notice

This is just a game and in no way should the taken as a substitute for a real therapist. If you are struggling with anything related to mental health, the right thing to do is to go look for a capable professional.