Skip to content
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

Merged
merged 1 commit into from
May 18, 2019
Merged

Badwords and informals for zh #438

merged 1 commit into from
May 18, 2019

Conversation

halfak
Copy link
Member

@halfak halfak commented May 18, 2019

No description provided.

@halfak halfak force-pushed the zhwiki branch 2 times, most recently from 58ac6de to e36e0fc Compare May 18, 2019 16:37
r"去你媽", # "to your mother"
r"去你的", # "to yours"
r"婊子", r"妓女", # prostitute
r"狗日", # "dog days" (inappropriate)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

日了?狗

# 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add variant 日... here

"""

# Formatted from https://resources.allsetlearning.com/chinese/grammar/Formal_and_informal_function_words
informal_regexes = [

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

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.
@halfak halfak merged commit ba092d6 into master May 18, 2019
@halfak halfak deleted the zhwiki branch May 18, 2019 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants