{"id":23676175,"url":"https://github.com/bean-du/dfa","last_synced_at":"2025-09-02T05:31:03.716Z","repository":{"id":50461705,"uuid":"359658054","full_name":"bean-du/dfa","owner":"bean-du","description":"dfa is a sensitive word checker 敏感词检测","archived":false,"fork":false,"pushed_at":"2023-08-31T01:36:31.000Z","size":6,"stargazers_count":44,"open_issues_count":2,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-01T09:35:32.133Z","etag":null,"topics":["dfa","golang-dfa"],"latest_commit_sha":null,"homepage":"","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/bean-du.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":"2021-04-20T02:22:20.000Z","updated_at":"2024-07-18T11:04:01.000Z","dependencies_parsed_at":"2024-06-19T06:16:43.108Z","dependency_job_id":"9d7be7d8-a7a8-4a14-a451-138c7254d67c","html_url":"https://github.com/bean-du/dfa","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bean-du%2Fdfa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bean-du%2Fdfa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bean-du%2Fdfa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bean-du%2Fdfa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bean-du","download_url":"https://codeload.github.com/bean-du/dfa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231749622,"owners_count":18420825,"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":["dfa","golang-dfa"],"created_at":"2024-12-29T14:42:14.353Z","updated_at":"2024-12-29T14:42:15.041Z","avatar_url":"https://github.com/bean-du.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DFA 敏感词检测\n\n\u003e golang dfa 敏感词检测算法实现，支持动态设置敏感词\n\n```go   \n    go get github.com/bean-du/dfa\n```\n\nexample：\n```go\n    sensitive := []string{\"王八蛋\", \"王八羔子\"}\n\n    fda := New()\n    fda.AddBadWords(sensitive)\n\n    str := \"你个王#八……羔子， 你就是个王*八/蛋\"\n    fmt.Println(fda.Check(str))\n```\n\n输出结果：\n```go\n[王#八……羔子 王*八/蛋] true\n\n目前只支持中文检测，欢迎大家 issues 和 pr。\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbean-du%2Fdfa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbean-du%2Fdfa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbean-du%2Fdfa/lists"}