{"id":13858023,"url":"https://github.com/mananshah99/sentR","last_synced_at":"2025-07-13T23:31:03.866Z","repository":{"id":28545971,"uuid":"32063137","full_name":"mananshah99/sentR","owner":"mananshah99","description":"Simple sentiment analysis framework for R","archived":false,"fork":false,"pushed_at":"2016-09-14T04:53:24.000Z","size":473,"stargazers_count":31,"open_issues_count":0,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-22T16:39:08.040Z","etag":null,"topics":["nlp","r","sentiment-analysis"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"AustinCodingAcademy/javascript-workbook","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mananshah99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-12T07:24:52.000Z","updated_at":"2020-04-17T23:28:00.000Z","dependencies_parsed_at":"2022-09-19T22:07:10.055Z","dependency_job_id":null,"html_url":"https://github.com/mananshah99/sentR","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mananshah99/sentR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mananshah99%2FsentR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mananshah99%2FsentR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mananshah99%2FsentR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mananshah99%2FsentR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mananshah99","download_url":"https://codeload.github.com/mananshah99/sentR/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mananshah99%2FsentR/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265220217,"owners_count":23729777,"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":["nlp","r","sentiment-analysis"],"created_at":"2024-08-05T03:01:54.185Z","updated_at":"2025-07-13T23:31:03.394Z","avatar_url":"https://github.com/mananshah99.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/mananshah99/sentR/blob/master/bin/logo.png\"\u003e\n\u003c/p\u003e\n\nSentR is an R package that provides functional sentiment analysis utilities with complete documentation and simple workflow integration. \n\n## Install [![Build Status](https://travis-ci.org/mananshah99/sentR.svg?branch=master)](https://travis-ci.org/mananshah99/sentR)\n\n1. Open the R shell (32 or 64 bit)\n2. Install devtools: run `install.packages('devtools')`\n2. Require devtools: run `require('devtools')`\n3. Install sentR@latest: run `install_github('mananshah99/sentR')`\n\n# Sentiment Scoring Examples\n\nInput:\n\n```R\nrequire('sentR')\n\n# Create small vectors for happy and sad words (useful in aggregate(...) function)\npositive \u003c- c('happy', 'well-off', 'good', 'happiness')\nnegative \u003c- c('sad', 'bad', 'miserable', 'terrible')\n\n# Words to test sentiment\ntest \u003c- c('I am a very happy person.', 'I am a very sad person', \n'I’ve always understood happiness to be appreciation. There is no greater happiness than appreciation for what one has- both physically and in the way of relationships and ideologies. The unhappy seek that which they do not have and can not fully appreciate the things around them. I don’t expect much from life. I don’t need a high paying job, a big house or fancy cars. I simply wish to be able to live my life appreciating everything around me. \n')\n\n# 1. Simple Summation\nout \u003c- classify.aggregate(test, positive, negative)\nout\n\n# 2. Naive Bayes\nout \u003c- classify.naivebayes(test)\nout\n```\n\nOutput:\n```\n  score\n1     1\n2    -1\n3     2\n\n     POS                NEG                 POS/NEG             SENT      \n[1,] \"9.47547003995745\" \"0.445453222112551\" \"21.2715265477714\"  \"positive\"\n[2,] \"1.03127774142571\" \"9.47547003995745\"  \"0.108836578774127\" \"negative\"\n[3,] \"67.1985217685598\" \"35.1792261323723\"  \"1.9101762362738\"   \"positive\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmananshah99%2FsentR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmananshah99%2FsentR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmananshah99%2FsentR/lists"}