Skip to main content

Identifies and flags toxic language in text to ensure communications remain professional and appropriate.

Project description

guardrails-ai-toxic-language

Identifies and flags toxic language in text to ensure communications remain professional and appropriate.

Installation

pip install guardrails-ai-toxic-language

This validator ships local models. After installing, run the post-install step to download them:

python -m guardrails_ai.toxic_language.post_install

Usage

from guardrails import Guard
from guardrails_ai.toxic_language import ToxicLanguage

guard = Guard().use(ToxicLanguage)

License

MIT — © Guardrails AI.

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

guardrails_ai_toxic_language-0.0.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

guardrails_ai_toxic_language-0.0.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file guardrails_ai_toxic_language-0.0.2.tar.gz.

File metadata

File hashes

Hashes for guardrails_ai_toxic_language-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4320d2eb9d87d8ba14c8d515d7f46bffb74ef43f5d829ce19d0d8d46aa3e83a6
MD5 7301378db305a47c0f52ef53857eb0d0
BLAKE2b-256 8ea0fe8c5dfd275956b9c41a536aed7a85ac521766122a683b3f58e5d992ecd2

See more details on using hashes here.

File details

Details for the file guardrails_ai_toxic_language-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for guardrails_ai_toxic_language-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 781e2fb198a986a6a233f143809f9d2a3de8f03bf11c1bee022422003aa6f8a8
MD5 4b400c20576a0d29e6205f3a1b4840e8
BLAKE2b-256 95fb6d3195546bf389e50c57a707399cd2f94f8faa8180484d0f54c6e42a2938

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