{"id":29572696,"url":"https://github.com/accelbyte/profanity-filter-go","last_synced_at":"2025-07-19T05:10:54.881Z","repository":{"id":96252475,"uuid":"259550178","full_name":"AccelByte/profanity-filter-go","owner":"AccelByte","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-23T02:42:09.000Z","size":58,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T05:13:43.246Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AccelByte.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":"2020-04-28T06:23:22.000Z","updated_at":"2020-04-30T06:19:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"85c00351-d925-47bb-9427-898c096bd5d3","html_url":"https://github.com/AccelByte/profanity-filter-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AccelByte/profanity-filter-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fprofanity-filter-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fprofanity-filter-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fprofanity-filter-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fprofanity-filter-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AccelByte","download_url":"https://codeload.github.com/AccelByte/profanity-filter-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AccelByte%2Fprofanity-filter-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265892515,"owners_count":23845034,"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-07-19T05:10:54.192Z","updated_at":"2025-07-19T05:10:54.864Z","avatar_url":"https://github.com/AccelByte.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# profanity-filter-go\nProfanity filter to check if a message contains blacklisted words\n\n# usage\n```go\n    package main\n    \n    import (\n        \"fmt\"\n    \n        filter \"github.com/AccelByte/profanity-filter-go\"\n    )\n    \n    func main() {\n        isBadWord, badWordFound, err := filter.ProfanityCheck(\"fuck\")\n        fmt.Println(\"Bad words found: \", isBadWord)\n        fmt.Println(\"Bad words tripped: \", badWordFound)\n        fmt.Println(\"Error: \", err)\n    }\n\n    \n```\n### Output\n```\n\u003e go run main.go\nBad words found:  true\nBad words tripped:  [fuck]\nError:  \u003cnil\u003e\n```\n\n### Generates list of profanity list from json file to array in go language code\n1. Run file main.go under directory `/profanity-filter-go/profanitylist/generator/main.go`\n   ```go run main.go```\n2. This script unmarshal the json files and generates as array variable in golang format.\n   This script diplays the result in terminal.\n   Example result:\n    ```go\n            var frenchCAProfanityList = profanityList{\n                    Country:     \"frenchCA\",\n                    BadWordList: []string{\"noune\", \"osti\", \"criss\", \"crisse\", \"calice\", \"tabarnak\", \"viarge\"},\n            }\n    \n            var klingonProfanityList = profanityList{\n                    Country:     \"klingon\",\n                    BadWordList: []string{\"ghuy'cha'\", \"QI'yaH\", \"Qu'vatlh\"},\n            }\n    \n    ```\n3. Copy the result as array variable profanity list in `profanity-filter-go/profanitylist.go`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccelbyte%2Fprofanity-filter-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faccelbyte%2Fprofanity-filter-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faccelbyte%2Fprofanity-filter-go/lists"}