Schedule a visit with the Emacs psychiatrist

Eliza is a natural language processing chatbot hidden inside of one of Linux's most popular text editors.
147 readers like this.
Linux toy: eliza

Jason Baker

Welcome to another day of the 24-day-long Linux command-line toys advent calendar. If this is your first visit to the series, you might be asking yourself what a command-line toy even is. We’re figuring that out as we go, but generally, it could be a game, or any simple diversion that helps you have fun at the terminal.

Some of you will have seen various selections from our calendar before, but we hope there’s at least one new thing for everyone.

Today's selection is a hidden gem inside of Emacs: Eliza, the Rogerian psychotherapist, a terminal toy ready to listen to everything you have to say.

A brief aside: While this toy is amusing, your health is no laughing matter. Please take care of yourself this holiday season, physically and mentally, and if stress and anxiety from the holidays are having a negative impact on your wellbeing, please consider seeing a professional for guidance. It really can help.

To launch Eliza, first, you'll need to launch Emacs. There's a good chance Emacs is already installed on your system, but if it's not, it's almost certainly in your default repositories.

Since I've been pretty fastidious about keeping this series in the terminal, launch Emacs with the -nw flag to keep in within your terminal emulator.

$ emacs -nw

Inside of Emacs, type M-x doctor to launch Eliza. For those of you like me from a Vim background who have no idea what this means, just hit escape, type x and then type doctor. Then, share all of your holiday frustrations.

Eliza goes way back, all the way to the mid-1960s a the MIT Artificial Intelligence Lab. Wikipedia has a rather fascinating look at her history.

Eliza isn't the only amusement inside of Emacs. Check out the manual for a whole list of fun toys.

Linux toy: eliza animated

Do you have a favorite command-line toy that you think I ought to profile? We're running out of time, but I'd still love to hear your suggestions. Let me know in the comments below, and I'll check it out. And let me know what you thought of today's amusement.

Be sure to check out yesterday's toy, Head to the arcade in your Linux terminal with this Pac-man clone, and come back tomorrow for another!

What to read next
User profile image.
Jason was an Opensource.com staff member and Red Hatter from 2013 to 2022. This profile contains his work-related articles from that time. Other contributions can be found on his personal account.

Comments are closed.

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.