{"id":13509416,"url":"https://github.com/uesteibar/veritaserum","last_synced_at":"2025-06-29T06:04:01.912Z","repository":{"id":45156284,"uuid":"91603167","full_name":"uesteibar/veritaserum","owner":"uesteibar","description":"Sentiment analysis based on afinn-165, emojis and some enhancements.","archived":false,"fork":false,"pushed_at":"2023-01-19T08:59:59.000Z","size":52,"stargazers_count":83,"open_issues_count":2,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-11T10:13:14.907Z","etag":null,"topics":["afinn","elixir","elixir-library","hex","sentiment-analysis"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/veritaserum","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uesteibar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-17T17:32:20.000Z","updated_at":"2024-05-28T20:20:29.000Z","dependencies_parsed_at":"2023-02-10T21:46:09.483Z","dependency_job_id":null,"html_url":"https://github.com/uesteibar/veritaserum","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/uesteibar/veritaserum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uesteibar%2Fveritaserum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uesteibar%2Fveritaserum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uesteibar%2Fveritaserum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uesteibar%2Fveritaserum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uesteibar","download_url":"https://codeload.github.com/uesteibar/veritaserum/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uesteibar%2Fveritaserum/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262545028,"owners_count":23326655,"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":["afinn","elixir","elixir-library","hex","sentiment-analysis"],"created_at":"2024-08-01T02:01:07.406Z","updated_at":"2025-06-29T06:04:01.891Z","avatar_url":"https://github.com/uesteibar.png","language":"Elixir","funding_links":[],"categories":["Text and Numbers"],"sub_categories":[],"readme":"# Veritaserum\n\n[![Build Status](https://travis-ci.org/uesteibar/veritaserum.svg?branch=master)](https://travis-ci.org/uesteibar/veritaserum)\n[![Module Version](https://img.shields.io/hexpm/v/veritaserum.svg)](https://hex.pm/packages/veritaserum)\n[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/veritaserum/)\n[![License](https://img.shields.io/hexpm/l/veritaserum.svg)](https://github.com/uesteibar/veritaserum/blob/master/LICENSE.md)\n\nSimple sentiment analysis for [Elixir](http://elixir-lang.org/) based on the AFINN-165 list and some extra enhancements.\n\nIt also supports:\n- **emojis** (❤️, 😱...)\n- **boosters** (*very*, *really*...)\n- **negators** (*don't*, *not*...).\n\n## Index\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Running Locally](#running-locally)\n- [Contributing](#contributing)\n\n## Installation\n\nAdd `veritaserum` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:veritaserum, \"~\u003e 0.2.2\"}]\nend\n```\n\n## Usage\n\nTo analyze a text\n```elixir\nVeritaserum.analyze(\"I love Veritaserum!\") #=\u003e 3\n\n# It also supports emojis\nVeritaserum.analyze(\"I ❤️ Veritaserum!\") #=\u003e 2\n\n# It also supports negators\nVeritaserum.analyze(\"I like Veritaserum!\") #=\u003e 2\nVeritaserum.analyze(\"I don't like Veritaserum!\") #=\u003e -2\n\n#and boosters\nVeritaserum.analyze(\"Veritaserum is cool!\") #=\u003e 1\nVeritaserum.analyze(\"Veritaserum is very cool!\") #=\u003e 2\n```\n\nYou can also pass a list\n```elixir\nVeritaserum.analyze([\"I love Veritaserum!\", \"I hate some things!\"]) #=\u003e [3, -3]\n```\n\nDocumentation can be found on [HexDocs](https://hexdocs.pm/veritaserum).\n\n## Running locally\n\nClone the repository\n```bash\ngit clone git@github.com:uesteibar/veritaserum.git\n```\n\nInstall dependencies\n```bash\ncd veritaserum\nmix deps.get\n```\n\nTo run the tests\n```bash\nmix test\n```\n\nTo run the lint\n```elixir\nmix credo\n```\n\n## Contributing\n\nPull requests are always welcome =)\n\nThe project uses [standard-changelog](https://github.com/conventional-changelog/conventional-changelog) to update the [Changelog](https://github.com/uesteibar/veritaserum/blob/master/CHANGELOG.md) with each commit message and upgrade the package version.\nFor that reason every contribution should have a title and body that follows the [conventional commits standard](https://conventionalcommits.org/) conventions (e.g. `feat(analyzer): Make it smarter than Jarvis`).\n\nTo make this process easier, you can do the following:\n\nInstall `commitizen` and `cz-conventional-changelog` globally\n```bash\nnpm i -g commitizen cz-conventional-changelog\n```\n\nSave `cz-conventional-changelog` as default\n```bash\necho '{ \"path\": \"cz-conventional-changelog\" }' \u003e ~/.czrc\n```\n\nInstead of `git commit`, you can now run\n```\ngit cz\n```\nand follow the instructions to generate the commit message.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuesteibar%2Fveritaserum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuesteibar%2Fveritaserum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuesteibar%2Fveritaserum/lists"}