Skip to main content

A module used to filter out profane and/or offensive language of your choosing!

Project description

cleanlang let's you filter out profane and/or offensive language with customizable options! This includes things like threshold, a line between whether something is close to profane or not profane!


DISCLAIMER

Our module's results vary depending on your settings. This module is also in beta as of 6/10/25. We are also not responsible for any harm according to the MIT license.


profanityfilter: (Creates a profanity filter class)

import cleanlang

profanebot = cleanlang.profanityfilter(['bad', 'word'], 80) # (bad word list) (threshold)

Output:

No output

scan: (Determines whether or not a string contains profane language or not)

import cleanlang

pb = cleanlang.profanityfilter(['bad', 'word'], 80)

print(pb.scan('this Woard is b@d'))

Output:

True

dependencies:

  • fuzzywuzzy[speedup]

Thanks for reading, and enjoy cleanlang! :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cleanlang-1.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cleanlang-1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file cleanlang-1.1.tar.gz.

File metadata

  • Download URL: cleanlang-1.1.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for cleanlang-1.1.tar.gz
Algorithm Hash digest
SHA256 608c03c926b7b969cd122ec7119bee2f888477e11d54dfb054803f94c859225e
MD5 2a46d59da742a2f9ddc78770bf7f0c08
BLAKE2b-256 c3af18c16bfd7806a286879bcb124e6cfcb9783bce0bc5d32dec2520605453eb

See more details on using hashes here.

File details

Details for the file cleanlang-1.1-py3-none-any.whl.

File metadata

  • Download URL: cleanlang-1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for cleanlang-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6cc8b414989251800d2e2e7013a14896bfd8029f5b0c0d4d1e55c86d90aab2e
MD5 cae63c5dffba69472573da10c9600124
BLAKE2b-256 a37c9348c30a538352ec258eeeb4a18e439269477694302ababd71da688ab591

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page