News for hackers. Stuff that matters.
Re:Scunthorpe Sans – a self-censoring font by IanCal on Sunday May 10, 2020 @07:15AM (#23131768)
I love this.

I particularly like that arsenal is censored to a___nal.

Re:Scunthorpe Sans – a self-censoring font by oefrha on Sunday May 10, 2020 @07:45AM (#23131904)
Inspired by you, I grepped my system words file in search of words containing fuck. What I didn't expect is Apple's /usr/share/dict/words comes pre-censored.

  > grep fuck /usr/share/dict/words
  > grep '^shit$' /usr/share/dict/words
  > grep '^dick$' /usr/share/dict/words
  dick
  > grep '^cunt$' /usr/share/dict/words
  > grep '^bitch$' /usr/share/dict/words
  bitch
Wow.

(This comment doesn't reflect well on me. Fortunately, this is a pseudonymous account.)

Re:Scunthorpe Sans – a self-censoring font by StavrosK on Sunday May 10, 2020 @08:02AM (#23131995)
> (This comment doesn't reflect well on me. Fortunately, this is a pseudonymous account.)

If anyone thinks less of you because you simply know five swearwords, it's pretty much their problem.

Re:Scunthorpe Sans – a self-censoring font by twic on Sunday May 10, 2020 @11:16AM (#23133251)
> If anyone thinks less of you because you simply know five swearwords, it's pretty much their problem.

That's your position. When i'm hiring, there is simply no way i would bring someone on board who didn't know at least ten.

Re:Scunthorpe Sans – a self-censoring font by swyx on Sunday May 10, 2020 @11:21AM (#23133306)
if they don't constantly swear at their machine are they really a programmer?
Re:Scunthorpe Sans – a self-censoring font by encypruon on Sunday May 10, 2020 @09:04AM (#23132293)
I can't find it now, but there was a post on HN where someone shared a report regarding their social media activity. It was compiled by a firm that offers to "research" potential employees.

If I remember correctly, it included a twitter account that was not obviously linked to the persons name.

There was an entry for every (re-)tweet that contained swearing, associated with a negative score.

Also, if you're swearing on public platforms, you almost never know if/how the platform itself may react. Maybe it affects the likelyhood of your contribution(s) being shown to others.

Re:Scunthorpe Sans – a self-censoring font by StavrosK on Sunday May 10, 2020 @09:08AM (#23132309)
I don't doubt that this happens, but I think so much less of someone that would go into my Twitter and assign a negative ranking to each swearword in an effort to compile a metric of "me", that I wouldn't want to do business with them.

In that regard, adding more motherfucking swearwords in my bullshit comments serves as a great fucking way to deter any asshole cunt that thinks such metrics are a good goddamn idea. Dick pussy ass.

Re:Scunthorpe Sans – a self-censoring font by agustif on Sunday May 10, 2020 @09:24AM (#23132391)
Re:Scunthorpe Sans – a self-censoring font by StavrosK on Sunday May 10, 2020 @09:31AM (#23132429)
Haha, that's funny, though at times it feels like they're just adding the word "fucking" to phrases.
Re:Scunthorpe Sans – a self-censoring font by pbhjpbhj on Sunday May 10, 2020 @02:57PM (#23135073)
An interesting part of my kids playing CSGO is that they can now swear in at least 3 languages. I don't think you can play for more than a couple of days before you learn to swear in Russian (cyka blyat), it's practically synonymous with the game, a couple of weeks and you should know a Polish (kurwa) and a French swear (putain/merde).

And of course "fuck[ing]" and "shit" are used prolifically.

Re:Scunthorpe Sans – a self-censoring font by oefrha on Sunday May 10, 2020 @08:04AM (#23132005)
Nah, not that. "in search of words containing fuck" — just not a very mature thing to do.
Re:Scunthorpe Sans – a self-censoring font by JacobAldridge on Sunday May 10, 2020 @08:57AM (#23132256)
FUCK is still my default “Find>Replace>Find>Replace” placeholder. Need to shift a wad of spreadsheet cells laden with formulas but don’t want to risk anything?

Find All “=“ Replace with “FUCK” Copy/Move Find All “FUCK” Replace with “=“

Also handy for updating words or names when word processing.

The choice dates back to my first computer - I remember replacing all spaces “ “ with “FUCK” and watching gloriously as the assignment I had written was slowly turned into curse word gibberish.

I tell myself I still do it because (especially capitalised) it does stand out as an error in a way other placeholders may not. But it’s mostly for the fun and cheap thrill - pretty sure only one client ever got a document that I had left fucked up in this way.

[Edit to add: Nothing pseudonymous about my account name, but I’ll fucking own it.]

Re:Scunthorpe Sans – a self-censoring font by Baeocystin on Sunday May 10, 2020 @03:11PM (#23135216)
You mean you don't have it mapped to 'sudo $previous_line'?
Re:Scunthorpe Sans – a self-censoring font by ThePowerOfFuet on Sunday May 10, 2020 @06:46PM (#23137032)
Re:Scunthorpe Sans – a self-censoring font by StavrosK on Sunday May 10, 2020 @08:06AM (#23132018)
On the contrary, that's how science is made.
Re:Scunthorpe Sans – a self-censoring font by tgv on Sunday May 10, 2020 @09:17AM (#23132359)
It also censors Charles Dickens and peacock. But add some random capitalization, and you can swear all you want.
Re:Scunthorpe Sans – a self-censoring font by Datenstrom on Sunday May 10, 2020 @08:49AM (#23132210)
Call of Duty has censored all input with a regex like this for as long as I can remember. I can't even name one of my classes "Assault" which isn't even viewable publicly. You would think it would be easy to add a whitelist for such a common word.
Re:Scunthorpe Sans – a self-censoring font by MrLeap on Sunday May 10, 2020 @01:40PM (#23134437)
I remember playing Ragnarok Online back in 2005ish. I was working on my merchant. Merchants had an ability to get better sale prices to NPCs, so one common way to make money by buying some item from players in bulk for more than they could get vendoring it, and you make margin on it by getting even more. Arbitrage!

My skills weren't high enough to compete with other merchants on the highest margin common items, so I decided to try one of the lower priced things. Squeeze into some kind of niche, you see.

Around this time, I discovered the censorship list was enforced client side (oh the wild west old days...),

To make a long story long, there were these crabs and they dropped an item called "nippers". They were kind of a cute thing because though that was what they were called by the game's creators, the game censored you for saying it. I removed "nip" from the list of gylphs, I could shout an offer to buy them without interference. This let me buy these items from players without any competition. As the only dedicated purchaser, I was able to preserve a much higher margin.

Thanks to a soft monopoly preserved by regulations and information asynchrony, I was able to make significantly more money than I would have otherwise. That taught a lot of lessons to ~15 year old me. If only I could have applied those lessons in the real world!

Re:Scunthorpe Sans – a self-censoring font by tzs on Sunday May 10, 2020 @08:50PM (#23137791)
I had occasion to write a chat server for a small gaming service once. The way I came up with to do the profanity filter ended up working a lot better than I expected it to, and avoided the problem you describe.

It worked like this.

1. Make a copy of the text to be filtered, modified as follows.

-- change upper case letters to lower case

-- change 0 to o, 1 to i, 3 to e, 5 to s, and vowels with various accent marks to the corresponding unaccented lower case vowel

-- discard anything else

For example, if the input was

  start the assault. let's f-u-c-k them
it would become

  starttheassaultletsfuckthem 
2. Scan this for any substrings that are on the bad word list. In this case it would find "ass" and "fuck" [1].

3. If no bad words are found, the original string is returned and we are done.

4. For each word in the original string, look it up in the dictionary (I believe I used /usr/dict/words). Note the ranges of character positions in the original string of the words that are spelled correctly.

5. For each bad word found in the filtered string, if all of its characters came from positions in the original string that were part of correctly spelled words, leave it alone. Otherwise, asterisk out its characters in the original string.

In the above example, "ass" would be left alone because all of its characters came from "assualt" which is recognized as a correctly spelled word. None of "fuck" came from correctly spelled words, so it would get zapped. The final result would be

  start the assault. let's *-*-*-* them
[1] Well...actually not. I just checked my archives and found the chat server bad word list. It did not include "ass".
Re:Scunthorpe Sans – a self-censoring font by woodrowbarlow on Monday May 11, 2020 @07:13AM (#23140891)
just... be sure you're at least aware of the scunthorpe problem that this font is named after. do not implement an obscenity filter without being aware of the inconveniences they pose.

my name is woody (like the tom hanks cowboy, but also, i've been told, like the outdated euphemism for an erection) and i've been scunthorped out of creating accounts on dozens of sites because of my name. it's aggravating at the best of times, but doubly so when i want to be actually recognizable on the service in question.

https://en.wikipedia.org/wiki/Scunthorpe_problem

Re:Scunthorpe Sans – a self-censoring font by tzs on Sunday May 10, 2020 @08:43PM (#23137742)
I had occasion to write a chat server for a small gaming service once. The way I came up with to do the profanity filter ended up working a lot better than I expected it to, and avoided the problem you describe.

It worked like this.

1. Make a copy of the text to be filtered, modified as follows.

-- change upper case letters to lower case

-- change 0 to o, 1 to i, 3 to e, 5 to s, and vowels with various accent marks to the corresponding unaccented lower case vowel

-- discard anything else

For example, if the input was "Start the assault. let's f-u-c-k them" it would become "starttheassaultletsfuckthem".

2. Scan this for any substrings that are on the bad word list. In this case it would find "ass" and "fuck" [1].

3. If no bad words are found, the original string is returned and we are done.

4. For each word in the original string, look it up in the dictionary (I believe I used /usr/dict/words). Note the ranges of character positions in the original string of the words that are spelled correctly.

5. For each bad word found in the filtered string, if all of its characters came from positions in the original string that were part of correctly spelled words, leave it alone. Otherwise, asterisk out its characters in the original string.

In the above example, "ass" would be left alone because all of its characters came from "assualt" which is recognized as a correctly spelled word. None of "fuck" came from correctly spelled words, so it would get zapped. The final result would be

  start the assault. let's *-*-*-* them.
[1] Well...actually not. I just checked my archives and found the chat server bad word list. It did not include "ass".
Re:Scunthorpe Sans – a self-censoring font by dylan604 on Sunday May 10, 2020 @10:20AM (#23132755)
well, technically, arsenal are shit. so, transitively, it make sense. I miss my footy!!!!
Re:Scunthorpe Sans – a self-censoring font by pjbster on Monday May 11, 2020 @03:57AM (#23139836)
Ah, now if you want to bring tribalism into this, here's the obligatory joke:

What are the only 3 English football clubs with swear words in their names?

1. Scunthorpe United, 2. Arsenal, 3. F*ing Man United!

Re:Scunthorpe Sans – a self-censoring font by twic on Sunday May 10, 2020 @11:17AM (#23133261)
I assume it censors 'Spurs' to '_____'.
Re:Scunthorpe Sans – a self-censoring font by JosephRedfern on Sunday May 10, 2020 @08:17AM (#23132053)
What happens if a string has two potential ligatures? For instance, if there was a ‘abc’ ligature and a ‘bcd’ ligature, how would ‘abcd’ be rendered? Is there a priority/hierarchy?
Re:Scunthorpe Sans – a self-censoring font by ekimekim on Sunday May 10, 2020 @08:20AM (#23132073)
I tried this in their tool, "shitwat" comes out as "s*wat"
Re:Scunthorpe Sans – a self-censoring font by np_tedious on Sunday May 10, 2020 @07:32AM (#23131848)
Can these ligatures be applied recursively?
Re:Scunthorpe Sans – a self-censoring font by Etheryte on Sunday May 10, 2020 @08:05AM (#23132011)
That sounds unlikely, ligatures are two or more consecutive graphemes graphemes joined into a single glyph, but only visually. The underlying text is unmodified, so as far as the renderer is concerned, the text is still "arsenal".
Re:Scunthorpe Sans – a self-censoring font by StavrosK on Sunday May 10, 2020 @08:02AM (#23131998)
Recursively how?
Re:Scunthorpe Sans – a self-censoring font by np_tedious on Sunday May 10, 2020 @09:43PM (#23138100)
Pretty sure the answer is "no" but I'll explain more what I was wondering.

Assume "arse" and "anal" are both on the bad and that underscores are treated like irrelevant whitespace.

Arsenal

A___nal

A______

Re:Scunthorpe Sans – a self-censoring font by StavrosK on Sunday May 10, 2020 @09:46PM (#23138116)
You mean "arse" and "enal"? So basically overlaps? That's a good question, I'm not sure what happens there, I think the first ligature "wins".

Yeah, if you type "cuntits" it only censors "unt".

Re:Scunthorpe Sans – a self-censoring font by np_tedious on Monday May 11, 2020 @06:10AM (#23140524)
No. I mean first the "arse" rule is applied, and then the "anal" rule (because this didn't exist previously and because the blanked out letters are ignored) is applied next
Re:Scunthorpe Sans – a self-censoring font by StavrosK on Monday May 11, 2020 @06:14AM (#23140555)
Oh, I see. No, that's not how ligatures work. I also don't see why A___nal would be censored, it's clearly not intended to be a curseword.
Re:Scunthorpe Sans – a self-censoring font by np_tedious on Tuesday May 12, 2020 @08:30AM (#23153200)
Just running with the idea expressed an a parent comment above. I think neither "anal" nor "arse" should be censored
Re:Scunthorpe Sans – a self-censoring font by chrisma0 on Sunday May 10, 2020 @03:53PM (#23135559)
How long did you take to come up with this gem?! I must know.
Re:Scunthorpe Sans – a self-censoring font by yummybear on Sunday May 10, 2020 @07:23AM (#23131805)
ass, however is not
Re:Scunthorpe Sans – a self-censoring font by murkle on Sunday May 10, 2020 @07:27AM (#23131824)
Why would you censor "donkey"?
Re:Scunthorpe Sans – a self-censoring font by StavrosK on Sunday May 10, 2020 @08:03AM (#23132000)
You know what happens when you buttume.
Re:Scunthorpe Sans – a self-censoring font by brazzy on Sunday May 10, 2020 @08:35AM (#23132127)
Well, you're not gonna be buttbuttinated over it...
Re:Scunthorpe Sans – a self-censoring font by q4 on Sunday May 10, 2020 @11:39AM (#23133456)
Because gentlemen prefer ass.