{"id":17998400,"url":"https://github.com/primaryobjects/emotion","last_synced_at":"2025-03-26T05:30:47.835Z","repository":{"id":139343229,"uuid":"71301349","full_name":"primaryobjects/emotion","owner":"primaryobjects","description":"Artificial intelligence emotion in a conversational UI.","archived":false,"fork":false,"pushed_at":"2016-10-19T14:01:19.000Z","size":5,"stargazers_count":17,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T06:41:38.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/primaryobjects.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-18T23:52:45.000Z","updated_at":"2024-01-04T16:08:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d33cfd9-7114-4778-8e8d-b7cc957ae716","html_url":"https://github.com/primaryobjects/emotion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Femotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Femotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Femotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/primaryobjects%2Femotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/primaryobjects","download_url":"https://codeload.github.com/primaryobjects/emotion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245597140,"owners_count":20641858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T21:25:10.537Z","updated_at":"2025-03-26T05:30:47.817Z","avatar_url":"https://github.com/primaryobjects.png","language":"JavaScript","readme":"Emotional Artificial Intelligence\r\n=================================\r\n\r\nProof-of-concept for an emotional conversational user interface about book reviews.\r\n\r\nWhat is it?\r\n-----------\r\n\r\nThis project is a simple demo of designing emotion into an artificial intelligence conversational UI. The demo consists of a chatbot interface for retrieving book reviews. The user can interact with the software in a conversational UI style, by typing and chatting with the software.\r\n\r\nResponses from the chatbot are triggered by specific keywords and phrases.\r\n\r\nPhrases that contain emotionally charged words (from a preset list of keywords) are responded according to neutral, positive, or negative sentiment of the user.\r\n\r\nEach potential response from the conversational UI consists of three potential sentences, according to the sentiment of the user.\r\n\r\nThe actual determination of sentiment is performed in a mock function, where you would normally call a machine learning API for scoring sentiment (ie., http://sentimentview.com). Likewise, responses for book reviews are hard-coded, where you would normally call a book review API (ie., http://goodreads.com/api).\r\n\r\nWhy?\r\n----\r\n\r\nSentiment analysis is approaching 80+% accuracy, nearly exceeding that of a human! When a computer can detect the sentiment of a user within a software system, it can interact with the user in a much more human-like fashion. Utilizing and responding to the emotional state of the user can help bring humans and computers even closer together. Imagine.. what a world!\r\n\r\nDemo\r\n----\r\n\r\nWithout Emotion https://jsfiddle.net/dbyzztxp/1/\r\n\r\n```text\r\n\u003e hello\r\nHello, please say the name of a book to get a review.\r\n\u003e how about Alice in Wonderland?\r\nThe book Alice in Wonderland has a rating of 4 stars.\r\n\u003e I love Alice in Wonderland!\r\nThe book Alice in Wonderland has a rating of 4 stars.\r\n\u003e What about Pemberley?\r\nThe book Pemberley has a rating of 2 stars.\r\n\u003e Hm, Pemberley sounds like a book I would dislike.\r\nThe book Pemberley has a rating of 2 stars.\r\n\u003e You're not much help, pretty sad!\r\nPlease say the name of a book to get a review.\r\n```\r\n\r\nWith Emotion https://jsfiddle.net/z0rkyq4L/2/\r\n\r\n```text\r\n\u003e hello\r\nHello, please say the name of a book to get a review.\r\n\u003e Hello, the other version of you was quite bad.\r\nPerhaps, a good book would cheer you up. Please say the name of a book to get a review.\r\n\u003e Ok, how about Alice in Wonderland?\r\nThe book Alice in Wonderland has a rating of 4 stars.\r\n\u003e I love Alice in Wonderland!\r\nThat's great to hear that you enjoy the book. You might also like \"The Annotated Alice: The Definitive Edition\" by the same author, with a rating of 4.5. Would you like to hear about it?\r\n\u003e No thanks. What about Pemberley?\r\nThe book Pemberley has a rating of 2 stars.\r\n\u003e That's too bad. Pemberley doesn't sound too good.\r\nAlthough this book has quite a low rating, you might enjoy \"Mrs Darcy's Dilemma\", by Diana Birchall, with a rating of 3.4. Would you like to hear about it?\r\n\u003e I dislike that book too. Can you help?\r\nRetrieving book reviews can actually be quite easy! Just say the name of a book to get a review.\r\n\u003e This is great! But, time to go. Bye.\r\nI'm glad to have helped! Please come back soon. Goodbye.\r\n```\r\n\r\nAuthor\r\n------\r\n\r\nKory Becker http://www.primaryobjects.com/kory-becker","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Femotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprimaryobjects%2Femotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprimaryobjects%2Femotion/lists"}