{"id":24672063,"url":"https://github.com/nealrs/spammy","last_synced_at":"2025-03-21T14:43:06.289Z","repository":{"id":26214374,"uuid":"29660791","full_name":"nealrs/spammy","owner":"nealrs","description":"check strings for spammy words \u0026 phrases","archived":false,"fork":false,"pushed_at":"2015-01-23T03:18:41.000Z","size":160,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"gh-pages","last_synced_at":"2025-01-26T10:12:34.579Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nealrs.github.io/spammy/","language":null,"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/nealrs.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}},"created_at":"2015-01-22T05:26:13.000Z","updated_at":"2023-02-22T11:01:38.000Z","dependencies_parsed_at":"2022-08-01T08:49:04.714Z","dependency_job_id":null,"html_url":"https://github.com/nealrs/spammy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealrs%2Fspammy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealrs%2Fspammy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealrs%2Fspammy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nealrs%2Fspammy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nealrs","download_url":"https://codeload.github.com/nealrs/spammy/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244815971,"owners_count":20515023,"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":[],"created_at":"2025-01-26T10:12:48.309Z","updated_at":"2025-03-21T14:43:06.255Z","avatar_url":"https://github.com/nealrs.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# spammy\n\nI write 3-4 email newsletters every week, so deliverability is super important to me. To that end, I need to make sure my subject lines don't set off any ISP / spam filter alarms.\n\n**Demo**\n\nThe [live demo](http://nealrs.github.io/spammy/) is _heavily_ inspired by [titlecapitalization.com](http://titlecapitalization.com). Try it out, share it with your friends. Reach more users.\n\n**Library**\n\nspammy accepts strings and will return `true` if it contains any words or phrases commonly associated with email spam. If it returns `false`, you're good.\n\nI pulled the spam triggers from this [HubSpot blog post]( http://blog.hubspot.com/blog/tabid/6307/bid/30684/The-Ultimate-List-of-Email-SPAM-Trigger-Words.aspx).\n\n**Usage**\n\n```js\nspammy(\"Hey, do you want to buy a luxury car $$$?\"); // true\nspammy(\"Great apartments - no fees\"); // true\nspammy(\"Check it out bruh\"); // true because of 'check'\nspammy(\"Can you take a look at this?\"); // false\nspammy(\"Win a million dollars\"); // true\nspammy(\"I love you\"); // false\n```\n\n**Issues**\n\nspammy isn't perfect. Words like 'check', 'now', 'only', etc _will_ trigger some false positives, even though they are quite common and may be appropriate for your campaign. But I think it's better to be conservative. Perhaps later on I'll revise this to highlight or return the specific spammy text.\n\n**Contribution**\n\nIf you can think of any additional trigger phrases, please submit a PR. I'm sure these things evolve over time. Spammy is open sourced under the MIT licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealrs%2Fspammy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnealrs%2Fspammy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnealrs%2Fspammy/lists"}