Skip to content

Realtime Node.js chatroom using Socket.io with sentiment analysis via Natural.js

License

Notifications You must be signed in to change notification settings

LewisWH/Realtime-chat-with-sentiment-analysis-in-Node.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime-chat-with-sentiment-analysis-in-Node.js

Realtime Node.js chatroom using Socket.io with sentiment analysis via Natural.js.

Goals

  • Create a realtime chatroom which communicates data via the websocket protocol, where available

  • Analyse the sentiment of each message sent by users

  • Present the evaluation data to the user via realtime sentiment analysis charts and a user analysis table

Getting Started

  • Ensure Node.js is installed and up to date

  • Clone this repository to the desired directory

  • Enter the directory

cd directorypath
  • Install the required node modules
npm install
  • Install emoji-short-name (emoji string equivalent dictionary)
npm install emoji-short-name
  • Install socket.io (real-time bi-directional event-based communication)
npm install socket.io
  • Install natural (natural language facility)
npm install natural

Executing the Application

npm start

Screenshots

User Prompt

Landing Page (chat and monitor)

Add emojis to messages

Data analysis via chart and table

Datapoint hover

Video Example of system in full project (Chaperon Chat Monitor)

chapexample.mp4