{"id":13670059,"url":"https://github.com/lsj575/wordfilter","last_synced_at":"2026-01-14T22:58:21.996Z","repository":{"id":144269424,"uuid":"173014852","full_name":"lsj575/wordfilter","owner":"lsj575","description":"token团队敏感词检测系统","archived":false,"fork":false,"pushed_at":"2019-02-28T02:54:45.000Z","size":55,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"github","last_synced_at":"2024-11-11T07:38:58.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/lsj575.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-28T00:57:13.000Z","updated_at":"2024-06-26T08:09:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfdcb3d9-267b-4757-8344-83690a0f79c2","html_url":"https://github.com/lsj575/wordfilter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lsj575/wordfilter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsj575%2Fwordfilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsj575%2Fwordfilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsj575%2Fwordfilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsj575%2Fwordfilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lsj575","download_url":"https://codeload.github.com/lsj575/wordfilter/tar.gz/refs/heads/github","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lsj575%2Fwordfilter/sbom","scorecard":{"id":601011,"data":{"date":"2025-08-11","repo":{"name":"github.com/lsj575/wordfilter","commit":"891cd0e38e48bb4fc335aa76d5e9ec1c4edf120a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'github'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T00:25:22.806Z","repository_id":144269424,"created_at":"2025-08-21T00:25:22.806Z","updated_at":"2025-08-21T00:25:22.806Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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-08-02T09:00:31.011Z","updated_at":"2026-01-14T22:58:21.971Z","avatar_url":"https://github.com/lsj575.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# 敏感词检测API\n\n基于词典的敏感词检测系统\n\n敏感词用Trie树存储\n\nGo Web框架：iris [官网](https://studyiris.com/)\n\n## install\n\n```shell\ngit clone git@github.com:lsj575/wordfilter.git\n\ncd $GOPATH/src/github.com/lsj575/wordfilter\n\n// 启动, 默认绑定9712端口\ngo run main.go 9712\n```\n\n## API\n\n### 敏感词\n\n#### 1.检测敏感词\n\n输入一段字符串，将返回检测到的敏感词和用*号代替敏感词后的文本，若设置了白名单，则对白名单词不做替换\n\n\u003e GET: /check?content=\n\n\u003e POST: /check\n\u003e\n\u003e HEADER: sign 一段加密过的字符串，详情查看安全一节\n\u003e\n\u003e Param: content（string）带检测字符串\n\n- 示例（以POST为例）\n\n  - Request: `http://localhost:9712/check`\n\n  - HEADER:\n\n    - sign:c2Vuc2l0aXZlJTdDJTdDMTU1MTI4NDQ5MiU3QyU3Q3Rva2Vu\n\n  - Params:\n\n    - content:苍井空，日本AV演员\n\n  - Response:\n\n    ```json\n    {\n        \"err_code\": 0,  // 0 表示没错误， 1 代表发生错误\n        \"msg\": \"OK\",    // 信息\n        \"data\": {\n            \"ret\": 1,   // 1代表检测出敏感词\n            \"result\": \"苍井空，****演员\",  //*号代替后的文本\n            \"find\": [     // 查找到的敏感词\n                \"日本AV\"\n            ]\n        }\n    }\n    ```\n\n#### 2.添加敏感词\n\n支持一次性添加多个敏感词，中间用英文逗号分隔\n\n\u003e POST:/sensitiveword\n\u003e\n\u003e PARAMS: words （string）要添加的敏感词\n\u003e\n\u003e Authorization: username:root password:root\n\n- 示例\n\n  - Request：`http://localhost:9712/sensitiveword`\n\n  - Params:\n\n    - words: 三陪\n\n  - Response：\n\n    ```json\n    {\n        \"err_code\": 0,\n        \"msg\": \"OK\",\n        \"data\": null\n    }\n    ```\n\n    - 如果已经存在\n\n      ```json\n      {\n          \"err_code\": 1,\n          \"msg\": \"陪睡 is exist\",\n          \"data\": null\n      }\n      ```\n\n### 白名单\n\n#### 1.添加白名单词\n\n支持一次性添加多个白名单词，中间用英文逗号分隔\n\n\u003e POST:/whiteword\n\u003e\n\u003e PARAMS: words （string）要添加的敏感词\n\u003e\n\u003e Authorization: username:root password:root\n\n- 示例\n\n  - Request：`http://localhost:9712/whiteword`\n\n  - Params:\n\n    - words: 路口\n\n  - Response：\n\n    ```json\n    {\n        \"err_code\": 0,\n        \"msg\": \"OK\",\n        \"data\": null\n    }\n    ```\n\n    - 如果已经存在\n\n      ```json\n      {\n          \"err_code\": 1,\n          \"msg\": \"路口 is exist\",\n          \"data\": null\n      }\n      ```\n\n### 安全\n\n#### sign\n\n- base64加密字符串\n- 字符串：`sensitive||(当前时间戳)||token`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsj575%2Fwordfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flsj575%2Fwordfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flsj575%2Fwordfilter/lists"}