Grammar – ‘How to’ vs. ‘How Do I’

clausesgrammarquestionssentence-fragmentswriting-style

This question is inspired by comments on a question on Stack Overflow. The original poster wrote:

How to correct this error?

And comments say that it's an incorrect question. Better is

How do I correct this error?

I am not a native English speaker, so the fact that both versions sound natural to me is quite irrelevant. But I would like to ask anyway whether the first version is really bad.

I have seen a lot of questions starting with How to, so if you say that the first version is incorrect, could you please summarize when it is OK to use How to and when it is preferable to say How do I.

Best Answer

In the original context, how to correct this error was intended as a question, but this is not a standard way to ask a question. It isn't a sentence, nor is it an interrogative, and it shouldn't have a question mark at the end of it. It's a content clause, or what is misleadingly called a "noun clause." Content clauses of this type would typically be used in contexts like:

  • I wonder how to correct this error.
  • There's no information on how to correct this error.
  • How to correct this error will be the focus of my talk.

Content clauses like this are also often used by themselves as headings and occasionally by people musing to themselves (e.g., "hmmm... how to solve this...").

Related Topic