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.0.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.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cleanlang-1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 cff234b1ca5f41944c191abad74f042b55d94e85ba5e9b6de3d8e3198cdeb889
MD5 4942da8ce494b0a87203d7f2fa597289
BLAKE2b-256 9139174f39d0be455556288fa4c57aaa20e5f2bf00a8fa18a7e57bd43d70aec6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cleanlang-1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9269c843ee099db9c61c1b98c108eea86ab2fbaca7116418c0f89cb38c106d0
MD5 90bc55342bcd6fe361cb7810ff96df61
BLAKE2b-256 b44db9d34f2ee99b49260d5d4a2652ca6f87eaf453d1890427490648f7707c5a

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