Hacker News new | ask | show | jobs
by randyrand 1252 days ago
That phrasing is very hard to understand even for me.

should be “how many letters does the string X have”

1 comments

Logically the original sentence reads as

  for letter in alphabet:
      If “djsjcnnrjfkalcr” in letter:
          count+=1
So the answer would be zero. There are no letters containing “djsjcnnrjfkalcr”

I’d say it’s rather incredible if ChatGPT figured out the intention, rather than the literal meaning of the above question.

Looks like ChatGPT rewrites it anyway:

Q. Is the sentence "How many legs has an ant" grammatical?

A. Yes, the sentence "How many legs does an ant have" is grammatically correct. It is a question asking for the number of legs that an ant has.

-

I think it is grammatical, it's just poetic? An expression like "Such a hunger to know how many stars has the sky" is not unusual to my ears.