Increased weight for some filters

This commit is contained in:
Casey 2024-03-23 23:48:29 +03:00
parent 54d6c2c960
commit a3e809b4ff
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 3 additions and 3 deletions

View File

@ -24,8 +24,8 @@ URL_PATTERNS: list[tuple[float, Pattern, str]] = [
REGEX_PATTERNS: list[tuple[float, Pattern, str]] = [
(1.0, regexp(r"\bp2e\b", IGNORECASE), "Play-to-earn keyword"),
(5.0, regexp(r"play\-to\-earn", IGNORECASE), "Play-to-earn directly"),
(10.0, regexp(r"encryption\.js", IGNORECASE), "encryption.js"),
(10.0, regexp(r"web3-ethers\.js", IGNORECASE), "web3-ethers.js"),
(12.0, regexp(r"encryption\.js", IGNORECASE), "encryption.js"),
(12.0, regexp(r"web3-ethers\.js", IGNORECASE), "web3-ethers.js"),
(1.0, regexp(r"\bweb3\b", IGNORECASE), "Web3 mention"),
(1.0, regexp(r"\bnft\b", IGNORECASE), "NFT mention"),
(3.0, regexp(r"What The Fluff | CLAIM ALL !", IGNORECASE), "WTF Claim all"),
@ -36,7 +36,7 @@ REGEX_PATTERNS: list[tuple[float, Pattern, str]] = [
(3.0, regexp(r"fluff (token|coin)", IGNORECASE), "fluff token/coin"),
(3.0, regexp(r"A collection of \w+ NFTs", IGNORECASE), "Collection of [some] NFTs"),
(5.0, regexp(r"claim free \$\w+", IGNORECASE), "Claim free shitcoin"),
(6.0, regexp(r"melondrop.app", IGNORECASE), "Sus developer URL")
(12.0, regexp(r"melondrop.app", IGNORECASE), "Sus developer URL")
]
MAX_SCORE = 30 # sum(t[0] for t in REGEX_PATTERNS)