File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
application/src/main/java/org/togetherjava/tjbot/commands/moderation/scam Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11
11
/**
12
12
* Detects whether a text message classifies as scam or not, using certain heuristics.
13
13
*
14
- * Highly configurable, using {@link ScamBlockerConfig}. Main method to use is {@link #isScam(CharSequence)}.
14
+ * Highly configurable, using {@link ScamBlockerConfig}. Main method to use is
15
+ * {@link #isScam(CharSequence)}.
15
16
*/
16
17
public final class ScamDetector {
17
18
private static final Pattern TOKENIZER = Pattern .compile ("[\\ s,]" );
18
19
private final ScamBlockerConfig config ;
19
20
20
21
/**
21
22
* Creates a new instance with the given configuration
23
+ *
22
24
* @param config the scam blocker config to use
23
25
*/
24
26
public ScamDetector (@ NotNull Config config ) {
@@ -27,6 +29,7 @@ public ScamDetector(@NotNull Config config) {
27
29
28
30
/**
29
31
* Detects whether the given message classifies as scam or not, using certain heuristics.
32
+ *
30
33
* @param message the message to analyze
31
34
* @return Whether the message classifies as scam
32
35
*/
You can’t perform that action at this time.
0 commit comments