Skip to content

Commit

Permalink
add censored words(moan)
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffy-melli committed Jan 11, 2025
1 parent 688e3a2 commit 9546286
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions korcen.go
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,15 @@ func Sexual(input string) bool {
}
}

input = regexp.MustCompile(`[^ㄱ-힣]`).ReplaceAllString(newtext, "")
input = strings.ReplaceAll(input, ".", "")
moan := []string{"헤으응", "헤응", "헤윾", "헤윽", "하앙", "하윾", "하윽"}
for _, item := range moan {
if strings.Contains(input, item) {
return true
}
}

return strings.Contains(input, "freenude")
}

Expand Down

0 comments on commit 9546286

Please sign in to comment.