{"id":18024136,"url":"https://github.com/thomasnield/bayes_email_spam","last_synced_at":"2026-03-07T16:31:43.810Z","repository":{"id":148076004,"uuid":"122891144","full_name":"thomasnield/bayes_email_spam","owner":"thomasnield","description":"Experimenting with Bayes and Email Spam Categorization","archived":false,"fork":false,"pushed_at":"2018-03-19T21:13:49.000Z","size":18,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-28T14:50:04.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomasnield.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-26T00:20:25.000Z","updated_at":"2023-09-23T12:00:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"f29566f2-d3d0-43d5-a899-01aedf8e2467","html_url":"https://github.com/thomasnield/bayes_email_spam","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomasnield/bayes_email_spam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnield%2Fbayes_email_spam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnield%2Fbayes_email_spam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnield%2Fbayes_email_spam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnield%2Fbayes_email_spam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasnield","download_url":"https://codeload.github.com/thomasnield/bayes_email_spam/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasnield%2Fbayes_email_spam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30221507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T14:02:48.375Z","status":"ssl_error","status_checked_at":"2026-03-07T14:02:43.192Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-30T07:12:00.039Z","updated_at":"2026-03-07T16:31:43.767Z","avatar_url":"https://github.com/thomasnield.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bayes Email Spam Filter\n\nExperimenting with Bayes and Email Spam Categorization in Kotlin. No dependencies needed besides Kotlin 1.2 std-lib. \n\nChapter 13 of [O'Reilly Data Science from Scratch](https://github.com/joelgrus/data-science-from-scratch/blob/master/code-python3/naive_bayes.py) has been the most helpful resource for this project. \n\n**OUTPUT:**\n\n```\nScore for an email containing message: \"discount viagra wholesale, hurry while this offer lasts\"\n0.9990090904079181\n\nScore for an email containing message: \"interesting meeting on amazon cloud services discount program\"\n0.01754275128116032\n\nSpammiest Words\nviagra 0.7\nthis 0.5\nfor 0.5\nprescription 0.5\nhey 0.3\n\nHammiest (non-spam) Words\nyour 0.7857142857142857\namazon 0.5\nfor 0.35714285714285715\na 0.35714285714285715\nmeeting 0.35714285714285715\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasnield%2Fbayes_email_spam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasnield%2Fbayes_email_spam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasnield%2Fbayes_email_spam/lists"}