akai-org / akai-org/put-wiki

Add profanity filter in user's nickname

未关闭
#87 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:backend type:task
主要语言
TypeScript
星标
6
派生
3
平均合并
3 天 17 小时
30 天内合并 PR
15

描述

## Summary
Implement a basic profanity filter for the nickname update flow to prevent users from setting offensive display names. The solution should be lightweight avoiding complex external APIs or machine learning models.

## [Acceptance criteria](https://www.atlassian.com/work-management/project-management/acceptance-criteria)
- [ ] Define a simple interface (e.g., `IProfanityChecker`) to evaluate if a given string contains inappropriate words.
- [ ] Implement the interface using a local text file.
- [ ] Integrate the check into the nickname update flow. The validation must be case-insensitive and handle basic scenarios.
- [ ] If profanity is detected, the flow must stop and return a `Result.Failure` with a clear, user-friendly message.

## Notes
Don't overengineer this. We don't need now a third-party AI moderation tool at this step. A hardcoded collection of the most common offensive words in Polish and English is okay as starting point.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。