{"id":19901309,"url":"https://github.com/lissy93/sentiment-analysis","last_synced_at":"2025-05-02T23:31:41.208Z","repository":{"id":69393711,"uuid":"43396653","full_name":"Lissy93/sentiment-analysis","owner":"Lissy93","description":"🎈 A Node.js AFINN-111 based sentiment analysis module","archived":false,"fork":false,"pushed_at":"2022-12-06T17:28:47.000Z","size":39605,"stargazers_count":27,"open_issues_count":2,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T14:18:07.467Z","etag":null,"topics":["affinn","browserify","javascript","nodejs","quick","sentiment-analysis","sentiment-sweep","sentimental"],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/Lissy93.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":"2015-09-29T21:52:15.000Z","updated_at":"2024-06-04T08:43:24.000Z","dependencies_parsed_at":"2023-03-22T11:33:00.616Z","dependency_job_id":null,"html_url":"https://github.com/Lissy93/sentiment-analysis","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"474d5585877b2bbed083a5b63a3cfa1fb94bac10"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Fsentiment-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Fsentiment-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Fsentiment-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lissy93%2Fsentiment-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lissy93","download_url":"https://codeload.github.com/Lissy93/sentiment-analysis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224341306,"owners_count":17295272,"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":["affinn","browserify","javascript","nodejs","quick","sentiment-analysis","sentiment-sweep","sentimental"],"created_at":"2024-11-12T20:14:37.791Z","updated_at":"2024-11-12T20:14:38.562Z","avatar_url":"https://github.com/Lissy93.png","language":"CoffeeScript","readme":"\u003c!-- Title + Description --\u003e\n\u003ch1 align=\"center\"\u003eSentiment Analysis\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n  \u003ci\u003eA light-weight sentiment analysis NPM module, based on the AFINN-111 word list\u003c/i\u003e\n  \u003cbr\u003e\u003cbr\u003e\n   \u003ca href=\"https://travis-ci.org/Lissy93/sentiment-analysis\" title=\"Build\"\u003e\u003cimg src=\"https://travis-ci.org/Lissy93/sentiment-analysis.svg?branch=dev\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://snyk.io/test/github/Lissy93/sentiment-analysis/\" title=\"Security\"\u003e\u003cimg src=\"https://snyk.io/test/github/Lissy93/sentiment-analysis/badge.svg\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/sentiment-analysis\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/sentiment-analysis\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/package/sentiment-analysis@0.1.2\"\u003e\u003cimg src=\"https://img.shields.io/bundlephobia/minzip/sentiment-analysis?color=success\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://codeclimate.com/github/Lissy93/sentiment-analysis/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/d122350f54e987951c4d/maintainability\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/Lissy93/sentiment-analysis#license\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/sentiment-analysis?color=success\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003c!-- Line Break --\u003e\n\u003chr /\u003e\n\n### Usage\n\nSimply install [`sentiment-analysis`](https://www.npmjs.com/package/sentiment-analysis) via Yarn/ NPM/ pnpm, then import and use it.\n\n```bash\nnpm i sentiment-analysis\n```\n\n```javascript\nsentimentAnalysis = require('sentiment-analysis');\n\nsentimentAnalysis('Dinosaurs are awesome!'); // +0.4\nsentimentAnalysis('Everything is stupid');  // -0.2\nsentimentAnalysis('JavaScript sucks'); // -0.3\nsentimentAnalysis('My life is a catastrophic disaster');  // -0.6\n```\n\nFor a more detailed usage example, see [this example Gist](https://gist.github.com/Lissy93/0d9a3d5dc9d9c49c7b4b9319a7715703)\n\n---\n\n### Developing\n\nTo make changes, clone the project, cd into it, install dev dependencies then start Gulp watch.\n\n```bash\ngit clone git@github.com:Lissy93/sentiment-analysis.git\ncd sentiment-analysis\nnpm i\n```\n\nThe entry point, and bulk of the logic is in the [`index.coffee`](https://github.com/Lissy93/sentiment-analysis/blob/master/index.coffee) file.\n\nThe following scripts are availible:\n- `npm run dev` - Watch for file changes and rebuild the project for development\n- `npm run build` - Run tests, then lint, compile and minify the project for production\n- `npm run test` - Execute unit tests, quality gates, and coverage\n- `npm run example` - Run the example script\n\n---\n\n### Testing\n\nAfter cloning, run `yarn test` to execute the unit tests and generate quality and coverage report. The following files will be executed:\n\n- [`utils.test.coffee`](https://github.com/Lissy93/sentiment-analysis/blob/master/test/utils.test.coffee) - All utility unit tests\n- [`main.test.coffee`](https://github.com/Lissy93/sentiment-analysis/blob/master/test/main.test.coffee) - Main integration tests\n\nAny new features added must be tested, and all tests must be passing before any changes can be merged.\n\n---\n\n### Contributing\n\nContributions are welcome :)\nPlease be sure to follow the [Contributor Covenant Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).\n\n---\n\n### License\n\n\u003csup\u003eFor license explanation, see [TLDR Legal \u003e MIT](https://tldrlegal.com/license/mit-license)\u003c/sup\u003e\n\n```\nThe MIT License (MIT)\nCopyright (c) Alicia Sykes \u003calicia@omg.com\u003e \n\nPermission is hereby granted, free of charge, to any person obtaining a copy \nof this software and associated documentation files (the \"Software\"), to deal \nin the Software without restriction, including without limitation the rights \nto use, copy, modify, merge, publish, distribute, sub-license, and/or sell \ncopies of the Software, and to permit persons to whom the Software is furnished \nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included install \ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANT ABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n\n\n\u003c!-- Line Break --\u003e\n\u003chr /\u003e\n\n\u003c!-- License + Copyright --\u003e\n\u003cp  align=\"center\"\u003e\n  \u003ci\u003e© \u003ca href=\"https://aliciasykes.com\"\u003eAlicia Sykes\u003c/a\u003e 2015\u003c/i\u003e\u003cbr\u003e\n  \u003ci\u003eLicensed under \u003ca href=\"https://gist.github.com/Lissy93/143d2ee01ccc5c052a17\"\u003eMIT\u003c/a\u003e\u003c/i\u003e\u003cbr\u003e\n  \u003ca href=\"https://github.com/lissy93\"\u003e\u003cimg src=\"https://i.ibb.co/4KtpYxb/octocat-clean-mini.png\" /\u003e\u003c/a\u003e\u003cbr\u003e\n  \u003csup\u003eThanks for visiting :)\u003c/sup\u003e\n\u003c/p\u003e\n\n\u003c!-- Dinosaur --\u003e\n\u003c!-- \n                        . - ~ ~ ~ - .\n      ..     _      .-~               ~-.\n     //|     \\ `..~                      `.\n    || |      }  }              /       \\  \\\n(\\   \\\\ \\~^..'                 |         }  \\\n \\`.-~  o      /       }       |        /    \\\n (__          |       /        |       /      `.\n  `- - ~ ~ -._|      /_ - ~ ~ ^|      /- _      `.\n              |     /          |     /     ~-.     ~- _\n              |_____|          |_____|         ~ - . _ _~_-_\n--\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissy93%2Fsentiment-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flissy93%2Fsentiment-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissy93%2Fsentiment-analysis/lists"}