-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Badwords and informals for zh #438
Conversation
58ac6de
to
e36e0fc
Compare
revscoring/languages/chinese.py
Outdated
r"去你媽", # "to your mother" | ||
r"去你的", # "to yours" | ||
r"婊子", r"妓女", # prostitute | ||
r"狗日", # "dog days" (inappropriate) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
日了?狗
revscoring/languages/chinese.py
Outdated
# Variants (homonyms) of the use of "fuck" that use 操 ("operation") and | ||
# 草 ("grass"), "肏" is the actual character. "艹" is not a real character | ||
# but it's used this way | ||
r"操你", r"草你", # fuck you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add variant 日... here
revscoring/languages/chinese.py
Outdated
""" | ||
|
||
# Formatted from https://resources.allsetlearning.com/chinese/grammar/Formal_and_informal_function_words | ||
informal_regexes = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
666+
233+
r"腦殘", # brain dead | ||
r"智障", # mentally retarded | ||
r"婊", r"妓", # prostitute | ||
r"屎", # shit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
屌, meaning dick
Also adds pre-processing to regex matches so that we can have traditional chinese converted to simplified and expect matches to work.
No description provided.