Text Quality
Our Text Quality Detector is designed to evaluate the quality of text inputs and ensure they meet specific criteria. By leveraging advanced algorithms, this tool helps maintain high-quality content and user interactions within your applications.
Vulnerability
Poor-quality text, including grammatical errors, offensive language, or incoherent content, can degrade user experience and credibility.
Usage
This detector evaluates text quality based on readability metrics such as Automated Readability Index, Dale Chall Readability Score, Linsear Write Formula, Gunning Fog Index, and Aggregate Reading Level.
Configuration
from guardrail.firewall.input_detectors import TextQualityInput
firewall = Firewall()
input_detectors = [TextQualityInput()]
sanitized_text, is_valid, risk_score = firewall.scan_input(text_input, input_detectors)