solving a prompting bug

Hide hard words

a recent°hard word bug°hard word in Greenland°hard word: I was asking ChatGPT°hard word 5.4 mini°hard word to do a per-word°hard word breakdown°hard word of a sentence. But, sometimes it left words out. Other times, it would include°hard word the trailing period as a word, despite°hard word being instructed°hard word not to.

The cause of the bug°hard word: the prompt°hard word also asked ChatGPT°hard word to get the "word count" of the sentence. It is bad at this.

So, if it said The dog is on the log°hard word has 4 words, it would stop after 4 words and ignore°hard word the log°hard word when processing the sentence.

Of course, Python°hard word can easily do this. 💡 and, in the future, AI°hard word systems will know to just use Python°hard word to get this information rather than trying to guess it themselves. But here, it wasn't even used; I don't remember/know why a "word count" got added to the response°hard word.