• qaz@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 hours ago

    I think a regex to filter out common slurs isn’t really the same

    The regex:

    (fag(g|got|tard)?\b|cock\s?sucker(s|ing)?|ni((g{2,}|q)+|[gq]{2,})[e3r]+(s|z)?|mudslime?s?|kikes?|\bspi(c|k)s?\b|\bchinks?|gooks?|bitch(es|ing|y)?|whor(es?|ing)|\btr(a|@)nn?(y|ies?)|\b(b|re|r)tard(ed)?s?)
    

    Link to code