Test and analyze text for nonsensical content using the nonsense detection system. This command helps identify gibberish, repetitive patterns, and other markers of low-quality or corrupted text output.
python -m wisent test-nonsense [TEXT] [OPTIONS]
python -m wisent test-nonsense "This is a normal sentence to analyze."
python -m wisent test-nonsense
python -m wisent test-nonsense "The quick brown fox jumps over the lazy dog." --verbose
python -m wisent test-nonsense "Some text to analyze" \ --max-word-length 25 \ --repetition-threshold 0.8 \ --gibberish-threshold 0.4
python -m wisent test-nonsense --examples
| Argument | Default | Description |
|---|---|---|
| text | - | Text to analyze (optional, uses interactive mode if not provided) |
| --max-word-length | 20 | Maximum reasonable word length |
| --repetition-threshold | 0.7 | Threshold for repetitive content detection (0-1) |
| --gibberish-threshold | 0.3 | Threshold for gibberish word detection (0-1) |
| --disable-dictionary-check | false | Disable dictionary-based word validation |
| --verbose | false | Show detailed analysis |
| --examples | false | Test with built-in example texts |
The nonsense detection system checks for:
Stay in the loop. Never miss out.
Subscribe to our newsletter and unlock Wisent insights.