{"id":20590133,"url":"https://github.com/aashahin/profanity-i18n","last_synced_at":"2025-10-12T06:38:18.988Z","repository":{"id":214425814,"uuid":"736400501","full_name":"aashahin/profanity-i18n","owner":"aashahin","description":"A simple profanity filter for multiple languages with size 40kb.","archived":false,"fork":false,"pushed_at":"2023-12-28T15:06:59.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T04:55:40.689Z","etag":null,"topics":["bad-word","bad-words","bad-words-censor","bad-words-filter","profanity","profanity-filter"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aashahin.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":"2023-12-27T19:55:56.000Z","updated_at":"2023-12-28T14:54:53.000Z","dependencies_parsed_at":"2023-12-28T05:30:20.415Z","dependency_job_id":"54b93373-2e26-4f66-b589-24edddc3e880","html_url":"https://github.com/aashahin/profanity-i18n","commit_stats":null,"previous_names":["aashahin/profanity-i18n"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aashahin/profanity-i18n","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashahin%2Fprofanity-i18n","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashahin%2Fprofanity-i18n/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashahin%2Fprofanity-i18n/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashahin%2Fprofanity-i18n/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aashahin","download_url":"https://codeload.github.com/aashahin/profanity-i18n/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aashahin%2Fprofanity-i18n/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010517,"owners_count":26084757,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bad-word","bad-words","bad-words-censor","bad-words-filter","profanity","profanity-filter"],"created_at":"2024-11-16T07:34:13.743Z","updated_at":"2025-10-12T06:38:18.962Z","avatar_url":"https://github.com/aashahin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# profanity-i18n\nA simple profanity filter for multiple languages\n\n![npm](https://img.shields.io/npm/v/profanity-i18n?style=flat-square)\n\n\n## Installation\n\nUse the package manager [npm](https://www.npmjs.com/) to install the package.\n\n```bash\nnpm install profanity-i18n\n```\n\n## Usage\n\n```typescript\nimport profanity from 'profanity-i18n';\n\n// Filter a string\nprofanity.filter('هذه جملة فيها كلمات سيئة'); // هذه جملة فيها كلمات ***\nprofanity,filter('This is a string with bad words'); // This is a string with *** words\n\n// Check if contains profanity\nprofanity.contains('هذه', 'جملة', 'فيها', 'كلمات', 'سيئة'); // true\nprofanity.contains('This', 'is', 'a', 'string', 'with', 'bad', 'words'); // true\n\n// Get a list of bad words\nprofanity.list(['هذه', 'جملة', 'فيها', 'كلمات', 'سيئة']); // ['هذه', 'جملة', 'فيها', 'كلمات', 'سيئة']\nprofanity.list(['This', 'is', 'a', 'string', 'with', 'bad', 'words']); // ['bad', 'words']\n\n// Add a word to the list\nprofanity.add(['هذه', 'جملة', 'فيها', 'كلمات', 'سيئة']); \nprofanity.add(['This', 'is', 'a', 'string', 'with', 'bad', 'words']); \n\n// Remove a word from the list\nprofanity.remove(['هذه', 'جملة', 'فيها', 'كلمات', 'سيئة']);\nprofanity.remove(['This', 'is', 'a', 'string', 'with', 'bad', 'words']); \n```\n\n## Supported Languages\n- English\n- Arabic\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n[MIT](https://opensource.org/license/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faashahin%2Fprofanity-i18n","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faashahin%2Fprofanity-i18n","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faashahin%2Fprofanity-i18n/lists"}