{"id":32113951,"url":"https://github.com/ggb/elm-sentiment","last_synced_at":"2026-07-12T18:31:06.583Z","repository":{"id":62418519,"uuid":"63815342","full_name":"ggb/elm-sentiment","owner":"ggb","description":"Wordlist-based sentiment analysis for Elm","archived":false,"fork":false,"pushed_at":"2018-08-24T21:12:11.000Z","size":184,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-09T13:38:36.228Z","etag":null,"topics":["elm","sentiment-analysis","wordlist"],"latest_commit_sha":null,"homepage":"","language":"Elm","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/ggb.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":"2016-07-20T21:20:51.000Z","updated_at":"2024-05-09T13:38:36.229Z","dependencies_parsed_at":"2022-11-01T16:46:18.804Z","dependency_job_id":null,"html_url":"https://github.com/ggb/elm-sentiment","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ggb/elm-sentiment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-sentiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-sentiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-sentiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-sentiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggb","download_url":"https://codeload.github.com/ggb/elm-sentiment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggb%2Felm-sentiment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35400292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"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":["elm","sentiment-analysis","wordlist"],"created_at":"2025-10-20T15:04:38.240Z","updated_at":"2026-07-12T18:31:06.570Z","avatar_url":"https://github.com/ggb.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-sentiment\n\nelm-sentiment is an Elm module that uses the [AFINN-111](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6010) wordlist to perform [sentiment analysis](http://en.wikipedia.org/wiki/Sentiment_analysis) on arbitrary blocks of input text. Other wordlists are easy to integrate.\n\nIt is inspired by the the [Sentiment](https://github.com/thisandagain/sentiment)-module for Node.js.\n\n**Please note** that a wordlist-based approach for sentiment analysis might not be the best available approach for every (your) application. It is a simple and easy to use solution that does not need training like a Bayes classifier, that might perform better in classifying sentiments.  \n\n## Installation\n\n```bash\nelm package install ggb/elm-sentiment\n```\n\n## Usage\n\nUsage is straightforward: \n\n```elm\nimport Sentiment\n\ntweet = \"\"\"\n#StarWars fans are the best kind of people. \nI'm so, so lucky \u0026 honored to get to hang \nout with you at Celebration. Thank you for \nbeing you.\n\"\"\"\n\nSentiment.analyse tweet\n\n-- Result:\n--\n-- { tokens = [\"starwars\",\"fans\",\"are\",\"the\",\"best\", ... ,\"for\",\"being\",\"you\"]\n-- , score = 12\n-- , words = [\"best\",\"kind\",\"lucky\",\"honored\",\"thank\"]\n-- , positive = [3,2,3,2,2]\n-- , negative = []\n-- , comparative = 0.42857142857142855 \n-- }\n\n```\n\nFor more advanced usage please take a look at the function-level documentation\nand especially at the analyseWith-function.\n\n## Future\n\nThere are lots of possibilities to improve the current module. Some ideas:\n\n* handling of negations\n* more and different word lists\n* compression of word lists\n* possibility to train a model (word list as fallback or support)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggb%2Felm-sentiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggb%2Felm-sentiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggb%2Felm-sentiment/lists"}