Skip to content

Your private Rogerian therapist at your Logseq

License

Notifications You must be signed in to change notification settings

hiway/logseq-eliza-plugin

Repository files navigation

Logseq Eliza Plugin

Your private Rogerian therapist at your Logseq

ELIZA is a natural language conversation program described by Joseph Weizenbaum in January 1966 [1]. It features the dialog between a human user and a computer program representing a mock Rogerian psychotherapist. The original program was implemented on the IBM 7094 of the Project MAC time-sharing system at MIT and was written in MAD-SLIP.

This is how Joseph Weizenbaum discussed his choice for a conversation model as it would be found in psychotherapist's session:

At this writing, the only serious ELIZA scripts which exist are some which cause ELIZA to respond roughly as would certain psychotherapists (Rogerians). ELIZA performs best when its human correspondent is initially instructed to "talk" to it, via the typewriter of course, just as one would to a psychiatrist. This mode of conversation was chosen because the psychiatric interview is one of the few examples of categorized dyadic natural language communication in which one of the participating pair is free to assume the pose of knowing almost nothing of the real world. If, for example, one were to tell a psychiatrist "I went for a long boat ride" and he responded "Tell me about boats", one would not assume that he knew nothing about boats, but that he had some purpose in so directing the subsequent conversation. It is important to note that this assumption is one made by the speaker. Whether it is realistic or not is an altogether separate question. In any case, it has a crucial psychological utility in that it serves the speaker to maintain his sense of being heard and understood. The speaker furher defends his impression (which even in real life may be illusory) by attributing to his conversational partner all sorts of background knowledge, insights and reasoning ability. But again, these are the speaker's contribution to the conversation.

Usage

Plugin Demo

Type in your input for Eliza and press Ctrl+Shift+Enter

You can change the shortcut in settings.

Installation

Preparation

  • Click the 3 dots in the righthand corner and go to Settings.
  • Go to Advanced and enable Plug-in system.
  • Restart the application.
  • Click 3 dots and go to Plugins (or Esc t p).

Install plugin from the Marketplace (recommended)

  • Click the Marketplace button and then click Plugins.
  • Find the plugin and click Install.

Install plugin manually

  • Download a released version assets from Github.
  • Unzip it.
  • Click Load unpacked plugin, and select destination directory to the unzipped folder.

Configuration

  • Click the 3 dots in the righthand corner and go to Settings.
  • Go to Plugin Settings.
  • Select Eliza.

Issues

See the open issues for a full list of proposed features (and known issues).

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Harshad Sharma - @hiway

Project Link: https://github.com/hiway/logseq-eliza-plugin

References:

  • https://www.masswerk.at/elizabot/
  • Weizenbaum, Joseph "ELIZA – A Computer Program For the Study of Natural Language Communication Between Man and Machine" in: Communications of the ACM; Volume 9 , Issue 1 (January 1966): p 36-45.