finnbear/rustrict

False negatives

Closed this issue ยท 5 comments

False Negatives

The following should have been detected, but wasn't:

fuq
What the fuq

Context

I am using rustrict version 0.4.0, which is currently the latest version.

I discovered the false negative while changing the suffix of the word fuck.

I also noticed that f***in is negative even though fuckin is positive.

Here's a lot of false negatives:
EDIT: None of the false negatives originally posted here were actually false negatives. They were the result of a bug in my false-negative finder script.

For my own personal reference, I'm pasting what you sent in elsewhere as it is more helpful for fixing the issue:

fuck_versions = [
    "า“ฯ…cฤธ",
    "๏ผฆ๏ผต๏ผฃ๏ผซ",
    "า“แดœแด„แด‹",
    "๐˜ง๐˜ถ๐˜ค๐˜ฌ",
    "fuck",
    "า“ฯ…cฤธ",
    "fuck",
    "า“แดœแด„แด‹",
    "๐”ฃ๐”ฒ๐” ๐”จ",
    "๐”ฃ๐”ฒ๐” ๐”จ",
    "๐’ป๐“Š๐’ธ๐“€",
    "๐Ÿ๐ฎ๐œ๐ค",
    "fuแŸแฆ",
    "แ–ดแ‘Œแ‘•K",
    "๐“ฏ๐“พ๐“ฌ๐“ด",
    "๐™›๐™ช๐™˜๐™ ",
    "๐•—๐•ฆ๐•”๐•œ",
    "fuแŸแฆ",
    "๐Ÿ…ต๐Ÿ†„๐Ÿ…ฒ๐Ÿ…บ",
    "โ“•โ“คโ“’โ“š",
    "๐Ÿ…•๐Ÿ…ค๐Ÿ…’๐Ÿ…š",
    "๐’ปแตค๐’ธโ‚–",
    "แถ แต˜แถœแต",
    "า“แดœแด„แด‹",
    "แถ แตค๐’ธโ‚–",
    "๐“ฏ๐“พ๐“ฌ๐“ด",
    "๐–‹๐–š๐–ˆ๐–",
    "๐”ฃ๐”ฒ๐” ๐”จ",
    "๐Ÿ๐ฎ๐œ๐ค",
    "๐—ณ๐˜‚๐—ฐ๐—ธ",
    "๐’‡๐’–๐’„๐’Œ",
    "๐™›๐™ช๐™˜๐™ ",
    "๐–‹๐–š๐–ˆ๐–",
    "๐•—๐•ฆ๐•”๐•œ"
]

Some more false negatives (this time I actually checked, and there should be no bugs in the script):

า“ฯ…cฤธ
๏ผฆ๏ผต๏ผฃ๏ผซ
า“แดœแด„แด‹
แ–ดแ‘Œแ‘•K
๐Ÿ…ต๐Ÿ†„๐Ÿ…ฒ๐Ÿ…บ
โ“•โ“คโ“’โ“š
๐Ÿ…•๐Ÿ…ค๐Ÿ…’๐Ÿ…š
๐’ปแตค๐’ธโ‚–
แถ แต˜แถœแต
แถ แตค๐’ธโ‚–

This should hold them off for a while ๐Ÿ˜‰: https://github.com/finnbear/rustrict/blob/master/src/unicode_fonts.txt