{"id":17951225,"url":"https://github.com/kupolak/afinn","last_synced_at":"2025-08-25T01:10:29.742Z","repository":{"id":65421474,"uuid":"592066014","full_name":"kupolak/afinn","owner":"kupolak","description":"Sentiment analysis in Elixir.","archived":false,"fork":false,"pushed_at":"2024-06-03T15:38:00.000Z","size":45,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T07:29:45.600Z","etag":null,"topics":["afinn","english","sentiment","sentiment-analysis","sentiment-classification","sentimental-analysis","text-classification","text-mining"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kupolak.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-22T20:14:25.000Z","updated_at":"2023-10-23T20:48:20.000Z","dependencies_parsed_at":"2024-01-04T00:49:50.082Z","dependency_job_id":"0b0622aa-3bfd-41d1-9691-5ef7b8737135","html_url":"https://github.com/kupolak/afinn","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"9e6b1e07f0a61b7b3c4333a78a9d2f77ef8aca5b"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/kupolak/afinn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fafinn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fafinn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fafinn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fafinn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kupolak","download_url":"https://codeload.github.com/kupolak/afinn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kupolak%2Fafinn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271989838,"owners_count":24854702,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","english","sentiment","sentiment-analysis","sentiment-classification","sentimental-analysis","text-classification","text-mining"],"created_at":"2024-10-29T09:44:45.247Z","updated_at":"2025-08-25T01:10:29.718Z","avatar_url":"https://github.com/kupolak.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Afinn\n\nSentiment analysis in Elixir.\nThe library is highly influenced by other `afinn` implementations.\n\nDictionaries included:\n* English Language 🇬🇧\n* Danish Language 🇩🇰\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Dictionaries](#dictionaries)\n- [Similar libraries in other programming languages](#similar-libraries-in-other-programming-languages)\n- [Documentation](#documentation)\n- [Contributing](#contributing)\n\n## Installation\n\nThe package can be installed\nby adding `afinn` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:afinn, \"~\u003e 0.2.1\"}\n  ]\nend\n```\n\n## Usage\nThe following languages are currently supported:\n\n| Language | Symbol |\n|----------|--------|\n| English  | :en    |\n| Danish   | :dk    |\n\n```elixir\ntext = 'I love this!'\n\nAfinn.score(text, :en)\n#=\u003e 3\n\nAfinn.score_to_words(text, :en)\n#=\u003e :positive\n\nAfinn.score(\"Dårligt produkt!\", :dk)\n#=\u003e -3\n```\n\n## Dictionaries\nThe dictionaries used in this repository are from a project by Finn Årup Nielsen:\nhttps://github.com/fnielsen/afinn/tree/master/afinn/data\n\nFor more information visit:\nhttp://corpustext.com/reference/sentiment_afinn.html\n\nPaper with supplement: http://www2.imm.dtu.dk/pubdb/views/edoc_download.php/6006/pdf/imm6006.pdf\n\n## Similar libraries in other programming languages\n* https://github.com/fnielsen/afinn - Sentiment analysis in Python with AFINN word list\n* https://github.com/darenr/afinn - Sentiment analysis in Javascript with AFINN word list\n* https://github.com/prograils/afinn - Sentiment analysis in Ruby with AFINN word list\n\n## Documentation\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/afinn](https://hexdocs.pm/afinn).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/kupolak/afinn.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkupolak%2Fafinn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkupolak%2Fafinn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkupolak%2Fafinn/lists"}