{"id":16697444,"url":"https://github.com/thisandagain/washyourmouthoutwithsoap","last_synced_at":"2025-09-03T13:16:51.573Z","repository":{"id":43758333,"uuid":"155461343","full_name":"thisandagain/washyourmouthoutwithsoap","owner":"thisandagain","description":"A list of bad words in many languages.","archived":false,"fork":false,"pushed_at":"2022-02-19T10:00:53.000Z","size":150,"stargazers_count":102,"open_issues_count":4,"forks_count":21,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-04-02T01:51:27.372Z","etag":null,"topics":["filter","language","moderation","profanity"],"latest_commit_sha":null,"homepage":null,"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/thisandagain.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}},"created_at":"2018-10-30T21:55:48.000Z","updated_at":"2025-03-25T19:14:28.000Z","dependencies_parsed_at":"2022-07-21T01:18:11.820Z","dependency_job_id":null,"html_url":"https://github.com/thisandagain/washyourmouthoutwithsoap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thisandagain/washyourmouthoutwithsoap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fwashyourmouthoutwithsoap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fwashyourmouthoutwithsoap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fwashyourmouthoutwithsoap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fwashyourmouthoutwithsoap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thisandagain","download_url":"https://codeload.github.com/thisandagain/washyourmouthoutwithsoap/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thisandagain%2Fwashyourmouthoutwithsoap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273448605,"owners_count":25107603,"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-09-03T02:00:09.631Z","response_time":76,"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":["filter","language","moderation","profanity"],"created_at":"2024-10-12T17:47:44.892Z","updated_at":"2025-09-03T13:16:51.517Z","avatar_url":"https://github.com/thisandagain.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"## washyourmouthoutwithsoap\n### A list of bad words in many languages.\n\n`washyourmouthoutwithsoap` is a simple module that provides a list (or *lists*) of bad words in many languages as well as a simple string matching utility to check arbitrary strings for the existence of words on the list. The source (English) bad word list is based on [Google's Bad Word List](https://github.com/MauriceButler/badwords) originally used in the \"What Do You Love\" project.\n\n## Basic Use\n### Getting the List of Supported Locales\n```js\nconst wash = require('washyourmouthoutwithsoap');\nwash.supported(); // Returns an array of ISO 639-1  locale codes\n```\n\n### Checking a String Against the Word List\n```js\nconst wash = require('washyourmouthoutwithsoap');\nwash.check('en', 'The quick brown fox jumped over the lazy dog.'); // false\nwash.check('en', 'The fox was a bit of an asshole.'); // true\n```\n\n### Getting All Words for a Specified Locale\n```js\nconst wash = require('washyourmouthoutwithsoap');\nwash.words('en'); // Returns an array of words for the specified locale\n```\n\n## Available Languages\n| Language   | Locale |\n| ---------- | ------ |\n| Belarusian | `be`   |\n| Bulgarian  | `bg`   |\n| Catalan    | `ca`   |\n| Czech      | `cs`   |\n| Welsh      | `cy`   |\n| Danish     | `da`   |\n| German     | `de`   |\n| Greek      | `el`   |\n| English    | `en`   |\n| Spanish    | `es`   |\n| Estonian   | `et`   |\n| Basque     | `eu`   |\n| Farsi      | `fa`   |\n| Finnish    | `fi`   |\n| French     | `fr`   |\n| Gaelic     | `gd`   |\n| Galician   | `gl`   |\n| Hindi      | `hi`   |\n| Croatian   | `hr`   |\n| Hungarian  | `hu`   |\n| Armenian   | `hy`   |\n| Indonesian | `id`   |\n| Icelandic  | `is`   |\n| Italian    | `it`   |\n| Japanese   | `ja`   |\n| Kannada    | `kn`   |\n| Korean     | `ko`   |\n| Latin      | `la`   |\n| Lithuanian | `lt`   |\n| Latvian    | `lv`   |\n| Macedonian | `mk`   |\n| Malayalam  | `ml`   |\n| Mongolian  | `mn`   |\n| Marathi    | `mr`   |\n| Malay      | `ms`   |\n| Maltese    | `mt`   |\n| Burmese    | `my`   |\n| Dutch      | `nl`   |\n| Polish     | `pl`   |\n| Portuguese | `pt`   |\n| Romanian   | `ro`   |\n| Russian    | `ru`   |\n| Slovak     | `sk`   |\n| Slovenian  | `sl`   |\n| Albanian   | `sq`   |\n| Serbian    | `sr`   |\n| Swedish    | `sv`   |\n| Telugu     | `te`   |\n| Thai       | `th`   |\n| Turkish    | `tr`   |\n| Ukrainian  | `uk`   |\n| Uzbek      | `uz`   |\n| Vietnamese | `vi`   |\n| Zulu       | `zu`   |\n\n## To Test\n```bash\nnpm test\n```\n\n## To Build\nWhile this library requires zero dependencies to run, it does use a build process to generate the large lists of bad words for each language using Google Translate. This data can be regenerated or modified yourself, but you will need to get access to your own [Google Cloud Platform](https://cloud.google.com/) credentials. Once setup, you can build via:\n\n```bash\nnode bin/build.js path/to/credentials.json\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisandagain%2Fwashyourmouthoutwithsoap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthisandagain%2Fwashyourmouthoutwithsoap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthisandagain%2Fwashyourmouthoutwithsoap/lists"}