Repository navigation
[BUGFIX] EntropySpam: catch mixed-case salad with short consonant runs (v13) - #82
Merged
svewap merged 1 commit intoNov 15, 2026
Merged
Conversation
Random tokens drawn from both cases get a vowel ("y" included) every
few characters, so their longest consonant run stays at four or five
and the syllable gate let them through. Two contact-form submissions
of 11/2026 ("lCRRyywrOPYgKTeXYAzGy", "lwTehoSoWoWIJucUfHbOHPGF") passed
this way; the plausible e-mail, phone number and topic then kept the
share of the one other suspicious token below gibberishShare.
Tokens with at least caseFlipsWithoutSyllableGate (default 4)
lower-to-upper flips now count as gibberish without the consonant-run
gate. Three would also flag four-part names like iPhoneProMax,
WhatsAppBusinessApi or BürgerInnenServiceCenter; four flags none of 40
CamelCase and gender-inclusive names checked. Detection of uniform
random 15-25-letter tokens rises from 72 % to 93 %; false positives
against hunspell de_DE stay at 0.15 %.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port of #81 to
release/v13. Validator change identical; v13 keeps its cases inEntropySpamValidatorTestinstead ofSpamCorpus, so the same samples and the adjusted consonant-run test live there.Unit tests: EntropySpam 58/58 green locally. The 4 errors in
ProcessFileListActionsEventListenerTestoccur on the unmodified branch too (local vendor).🤖 Generated with Claude Code