Skip to content

This project is a web application that analyzes the emotional tone of the entered text using IBM Watson Natural Language Understanding.

Notifications You must be signed in to change notification settings

GrecuAlexandru/texttone

Repository files navigation

Emotional Tone Checker for Text

This project is a web application that analyzes the emotional tone of the entered text using IBM Watson Natural Language Understanding.

Getting Started

  1. Clone the repository
git clone https://github.com/GrecuAlexandru/texttone.git
  1. Create an IBM Cloud account
  • Go to IBM Natural Language Understanding and create an account.
  • Unfortunately, you will need to enter a credit card, but IBM offers a free plan and will not charge you.
  1. Create a Natural Language Understanding Service
  1. Copy the Credentials
  • Go to the Manage page of your service instance.
  • Click Show Credentials.
  • Copy the API Key and URL.
  1. Set Up Environment Variables
  • Create a file called .env.local inside the root of the project.
  • Add the following lines to the file, replacing the placeholders with your actual API key and URL:
IBM_API_KEY="your-api-key"
IBM_SERVICE_URL="your-service-url"
  1. Install Dependencies and Run the Project
  • Install the dependencies by running:
npm install
  • Run the project by running:
npm run dev

Example Text

You can use the following example text to test the emotional tone analysis:

I had a wonderful day today! The weather was perfect, and I spent the afternoon with my friends at the park. We had a picnic, played games, and enjoyed each other's company. It was a truly delightful experience that made me feel happy and content.

Here is a screenshot of the project in action: Screenshot

Built With

About

This project is a web application that analyzes the emotional tone of the entered text using IBM Watson Natural Language Understanding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published