Live data from Hacker News

OpenAI admits that AI writing detectors don’t work

arstechnica.com

1–8 of 8 posts

Re: OpenAI admits that AI writing detectors don’t work

#6
post #4

const pattern = /I hope this (\w+) finds you well\./; if (pattern.test(text)) { console.log("is ai."); } else { console.log("not ai."); }

You may need one of the adjacent spaces in your capture group

I hope this dfajklgsdfjklagsdfjklsd finds you well.

Re: OpenAI admits that AI writing detectors don’t work

#8
post #4

const pattern = /I hope this (\w+) finds you well\./; if (pattern.test(text)) { console.log("is ai."); } else { console.log("not ai."); }

This won't work, you'd need at least... 3 more test cases.

    /I hope this (\w+) finds you well\.|It's important to note that |As a large language model/