Judol Detector
An advanced gambling comment detection system for YouTube videos using multiple string matching algorithms. Built to help content creators and platform moderators maintain safe, family-friendly communities by automatically identifying and managing gambling-related content in video comments.
Detection Algorithms
Regular Expression (Regex)
This method uses regular expressions to find specific patterns. For this project, it is used to detect gambling comments that follow a specific format: a word immediately followed by 2 or 3 numbers, such as "Danantara77" or "Gacor88". Regex is also used to normalize specific unicode fonts in comments to prevent them from being hidden from detection.
Knuth-Morris-Pratt (KMP)
The KMP algorithm is an efficient string-searching algorithm that avoids re-checking characters of the text that have already been matched. It achieves this by preprocessing the search pattern to create a "partial match table" (also known as a "prefix table" or "LPS array"). When a mismatch occurs, the algorithm uses this table to determine how far to shift the pattern to the right, skipping unnecessary comparisons. This results in a linear time complexity, making it very fast for finding exact pattern matches
Boyer-Moore
The Boyer-Moore algorithm is another highly efficient string-searching algorithm that is often used as a benchmark for practical string searches. A key feature of this algorithm is that it starts matching characters from the end of the pattern, moving backward. If a mismatch occurs, it uses two precomputed rules—the "bad-character rule" and the "good-suffix rule"—to determine the optimal number of characters to shift the pattern to the right. This allows it to skip sections of the text, often resulting in fewer comparisons than other algorithms and making it particularly fast when the pattern length increases.
Rabin-Karp
The Rabin-Karp algorithm uses a hashing technique to find a pattern within a text. It works by calculating a hash value for the pattern and for each successive substring of the text that has the same length as the pattern. It uses a "rolling hash" to efficiently update the hash value for each new substring without recomputing the entire hash from scratch. If the hash values match, a character-by-character comparison is then performed to confirm the match and avoid "hash collisions". This algorithm is especially effective for searching for multiple patterns at once.
How It Works
Enter Video URL
Simply paste any YouTube video URL or video ID into our detection form
Choose Algorithm
Select from multiple string matching algorithms: Regex, KMP, Boyer-Moore, or Rabin-Karp
Upload Patterns
Optionally upload custom pattern files for non-regex algorithms to enhance detection
Get Results
View comprehensive analysis with detected gambling comments and detailed statistics