fix(locale): remove offensive and inappropriate words from ja locale#3661
Merged
xDivisionByZerox merged 2 commits intofaker-js:nextfrom Nov 26, 2025
Merged
Conversation
Remove 17 inappropriate words from the Japanese word list: **Violent/offensive terms:** - 奴ら (yatsura) - derogatory term for "those people" - 殺人者 (satsujinsha) - murderer - ころす (korosu) - to kill - せっぷく (seppuku) - ritual suicide - 斬殺 (zansatsu) - killing by sword - ぶき (buki) - weapon - 鈍器 (donki) - blunt weapon - 暴力 (bōryoku) - violence (appeared twice) - 暴走 (bōsō) - rampage - 敵 (teki) - enemy - 撃つ (utsu) - to shoot - 死ぬ (shinu) - to die - 墓 (haka) - grave - 泥棒 (dorobō) - thief - 悪霊 (akuryō) - evil spirit (appeared twice as あくれい and 悪霊) **Discriminatory term:** - 色盲 (shikimō) - outdated/discriminatory term for color blindness **Politically sensitive:** - 右翼 (uyoku) - right-wing (political connotation) - 靖国神社 (Yasukuni Jinja) - politically controversial shrine **Potentially offensive medical term:** - 性病 (seibyō) - venereal disease (can be used offensively) These words could be offensive or inappropriate in various contexts. This change improves the quality and appropriateness of the generated fake data for Japanese locale.
✅ Deploy Preview for fakerjs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
Looks good to me. Per previous discussion at #1631 we are removing this kind of vocabulary where possible. |
Contributor
|
Note you'll need to run pnpm run preflight to update the snapshot tests. |
Contributor
Author
|
Thank you @matthewmayer for the review and feedback! I've updated the snapshot tests as suggested. I appreciate the pointer to the previous discussion #1631 - it's helpful to see the project's approach to this kind of vocabulary cleanup. |
matthewmayer
approved these changes
Nov 26, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #3661 +/- ##
=======================================
Coverage 99.97% 99.97%
=======================================
Files 2994 2994
Lines 236305 236284 -21
Branches 939 939
=======================================
- Hits 236248 236227 -21
Misses 57 57
🚀 New features to boost your workflow:
|
xDivisionByZerox
approved these changes
Nov 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR removes 17 inappropriate words from the Japanese word list in
src/locales/ja/lorem/word.tsto improve the quality and appropriateness of generated fake data.Words Removed
Violent/Offensive Terms (15 words)
Discriminatory Term (1 word)
Politically Sensitive Terms (2 words)
Potentially Offensive Medical Term (1 word)
Motivation
These words could be:
Removing them helps ensure that Faker generates appropriate, non-offensive placeholder data that can be used safely in all contexts.
Testing