Skip to main content

Reflective listening statements via paraphrase generation

Project description

Reflective Listening

This API generates reflective listening statements by way of paraphrasing. Reflective listening is one of the four techniques used in Motivational Interviewing, a counselling method commonly used to promote behavioural change.

Therapists use reflective listening to convey understanding of one's issue, demonstrating empathy, allowing the chatbot to engage the user better, build trust, and foster motivation to change in the person.

Example

This API allows conversational agents to reflectively listen to the user they're talking to. For example:

  • User: "Today is a bad day, I'm feeling lonely"
  • Chatbot's reflective listening response: "I understand, seems you are feeling lonely on a bad day."

Quickstart

Installation

pip install reflective-listening

How to use

from reflective_listening import ReflectiveListening

reflector = ReflectiveListening()
print(reflector.get_response("Today is a bad day, I'm feeling lonely"))

Output:

"I understand, seems like you are feeling lonely on a bad day."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflective_listening-0.1.3.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

reflective_listening-0.1.3-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page