this post was submitted on 04 Jun 2024
821 points (98.9% liked)
Programmer Humor
32412 readers
666 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Good old Scunthorpe problem
[I have told this story elsewhere before]
I thought I was so clever once. I taught a word filter about "th" thinking that would solve the problem, but it still got stuck on Scunthorpe. mfw.
Had to step through what it was doing. It had hit a rule that treated 'oo' the same as 'u' which, at least sound-wise, is valid for some words in some dialects. e.g. Consider "book", which is identical to "buck" for many people. You can imagine why that might want to be caught.
To save you the head scratching, it had spotted the 'c' then a double-'o' then the 'n' and threw it out as containing a known racial slur.
The filter was for a random string generator so that it wouldn't generate strings with bad words in them. Seemed like a good idea at the time.
Since it was unlikely that it was going to generate "Scunthorpe" anyway, the problem remained unfixed.