this post was submitted on 04 Jun 2024
820 points (98.9% liked)

Programmer Humor

32271 readers
11 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 18 points 4 months ago (1 children)

Good old Scunthorpe problem

[โ€“] [email protected] 7 points 4 months ago* (last edited 4 months ago)

[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.