27

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.

4
  • 7
    "How to correct this error" is a phrase that might do well as a title. "How do I correct this error" is a complete sentence.
    – MetaEd
    Commented Feb 1, 2012 at 16:16
  • I am averse to writing "How do I..." because the it sounds like it is asking for a solution tailored for me.
    – golopot
    Commented Jan 5, 2018 at 1:12
  • Both are actally correct. How to paint may sound like it is missing something, but it is correct.
    – Unknown
    Commented Jul 28, 2018 at 1:44
  • The former is only correct if it does not have a question mark at the end - it's a title for a solution, while usually on SE the poster is asking for a solution so it would be false advertising up until the point that it is answered correctly.
    – Dagelf
    Commented Jan 26, 2021 at 7:51

5 Answers 5

21

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...").

2
  • 1
    They can just as often be wrapped with a question: "Can you show me how to correct this error?"
    – TylerH
    Commented Jan 21, 2016 at 18:48
  • Indeed, they can. Commented Jan 22, 2016 at 20:29
16

"How to correct this error?" is missing a subject and a (finite) verb. So any of the following, or many variants, would look more complete as questions:

  • How do I correct this error?
  • How would you correct this error?
  • How might one correct this error?
2
  • 4
    The last one ("How might one") sounds awfully posh. Commented Feb 1, 2012 at 21:57
  • There is also the passive voice: How could this error be corrected? Often used in technical contexts. Commented Jul 5, 2019 at 8:25
14

How to...? is not a grammatical sentence, but is well-understood in Q&A contexts. How do I...? is a grammatical sentence.

While both contain what look like verbs, the first construction is using an infinitive form ("to correct", in your example), which can't stand as the main verb in a sentence. (For one thing, it has no subject.)

5
  • 6
    In ‘The Cambridge Encyclopedia of the English Language’, David Crystal calls sentences like the 'How to . . .' one ‘minor sentences’. He describes them as using ‘abnormal patterns which cannot be clearly analysed into a sequence of clause elements, as can major sentences’. Commented Feb 1, 2012 at 16:25
  • 3
    And he's dead right. David Crystal's Cambridge Encyclopedias should be in every Anglophone classroom in the world, in my opinion. They're the best one-source books available. Especially in paperback. Commented Feb 1, 2012 at 17:24
  • Thanks for the recommendation; I hadn't heard of that source before. Commented Feb 1, 2012 at 18:47
  • "For one thing, it has no subject." well that's kind of not accidental, however. "How would someone, anyone do X? It doesn't matter who, please don't tailor your answer with anybody specific in mind." I can understand if omitting the subject entirely is not the correct way to make the subject as generic as possible but... :)
    – badp
    Commented Apr 4, 2012 at 23:16
  • 1
    @badp, are you looking for "how does someone do X?" (as a replacement for "how do I...?")? Commented Apr 5, 2012 at 15:33
8

How to . . .? is fine in many contexts in which it is likely to occur. It will frequently be found as a heading. However, if you are asking the question yourself, How do I . . .? would be more usual, and is to be preferred if you think your readers won't like the alternative.

2

How do I always refers to yourself as the asker, or another asker if quoted or referenced e.g.

She asked "How do I do this?"

How to however does not make this distinction and can be used more flexibility.

For example:

I said how to fix it?

I said how do I fix it?

These both mean different things.

Otherwise you can use the two phrases for the same purpose, just keep in mind they require different wording and punctuation around them depending on the context and subject.

Of note, starting a sentence with "How to" is rarely a good idea, and as pointed out elsewhere is likely to be grammatically incorrect.

If you're unsure of which to use, you would be better off rephrasing to use something more appropriate such as How does she or How would I

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .