{"id":37144559,"url":"https://github.com/killtw/lemonade","last_synced_at":"2026-01-14T16:58:18.039Z","repository":{"id":142749230,"uuid":"228537421","full_name":"killtw/lemonade","owner":"killtw","description":"Sensitive word filter written in Golang.","archived":false,"fork":false,"pushed_at":"2019-12-17T09:14:44.000Z","size":20,"stargazers_count":31,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T12:06:26.731Z","etag":null,"topics":["dfa","go","golang","sensitive-words","trie"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/killtw.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-12-17T05:09:43.000Z","updated_at":"2024-04-15T15:14:55.000Z","dependencies_parsed_at":"2023-07-20T16:46:56.607Z","dependency_job_id":null,"html_url":"https://github.com/killtw/lemonade","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/killtw/lemonade","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killtw%2Flemonade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killtw%2Flemonade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killtw%2Flemonade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killtw%2Flemonade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/killtw","download_url":"https://codeload.github.com/killtw/lemonade/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/killtw%2Flemonade/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28427172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dfa","go","golang","sensitive-words","trie"],"created_at":"2026-01-14T16:58:17.399Z","updated_at":"2026-01-14T16:58:18.034Z","avatar_url":"https://github.com/killtw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lemonade\n\nA sensitive word filter service based on [DFA](https://www.wikiwand.com/en/Deterministic_finite_automaton)\n\n## Install\n```shell script\ngo get -u -v github.com/killtw/lemonade\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/killtw/lemonade/lemonade\"\n\t\"log\"\n)\n\nfunc main() {\n\tif err := lemonade.InitTrie(); err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\n\tlemonade.Add(\"test\")\n\n\tf1, m1 := lemonade.Replace(\"123test321\")\n\tfmt.Printf(\"filtered: %s, matches: %s\\n\", f1, m1)\n\n\tf2, m2 := lemonade.Replace(\"123te!@#$%st321\")\n\tfmt.Printf(\"filtered: %s, matches: %s\\n\", f2, m2)\n}\n```\n\n### Output\n```shell script\nfiltered: 123****321, matches: [test]\nfiltered: 123*********321, matches: [te!@#$%st]\n```\n\n## Credits\n\n- [Karl Li](https://github.com/killtw)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkilltw%2Flemonade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkilltw%2Flemonade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkilltw%2Flemonade/lists"}