logoalt Hacker News

bkryzatoday at 10:39 AM6 repliesview on HN

They have an interesting regex for detecting negative sentiment in users prompt which is then logged (explicit content): https://github.com/chatgptprojects/claude-code/blob/642c7f94...

I guess these words are to be avoided...


Replies

BoppreHtoday at 10:59 AM

An LLM company using regexes for sentiment analysis? That's like a truck company using horses to transport parts. Weird choice.

show 13 replies
moonteartoday at 11:12 AM

I don't know about avoided, this kind of represents the WTF per minute code quality measurement. When I write WTF as a response to Claude, I would actually love if an Antrhopic engineer would take a look at what mess Claude has created.

show 1 reply
sreekanth850today at 11:06 AM

Glad abusing words in my list are not in that. but its surprising that they use regex for sentiments.

dheerajmptoday at 11:28 AM

Yeah, this is crazy

nodjatoday at 10:56 AM

If anyone at anthropic is reading this and wants more logs from me add jfc.

raihansaputratoday at 10:49 AM

i wish that's for their logging/alert. i definitely gauge model's performance by how much those words i type when i'm frustrated in driving claude code.