8

Here is a quote from a book on C++ ("for", "while" and "do" are keywords in many languages, and in most languages they have to be in lower case. The C++ language is one of those.):

Simply put, algorithm names suggest what they do. "for", "while", and "do" don't.

One cannot write "For" instead of "for", because that would no longer refer to a well-known technical term, but to something else. Some attempts to fix this sentence would be:

The "for", "while", and "do" don't.

or:

The keywords "for", "while", and "do" don't.

or:

Use of "for", "while", or "do" does not.

Is this a good practice? Is this even an issue? What about other examples, such as starting sentence with a number, with a lower case letter in English or a foreign language, such as:

"l" looks a bit like "i". as opposed to something like: letter "l" looks a bit like "i".

4
  • 3
    The simplest solution is to use a semicolon: Simply put, algorithm names suggest what they do; "for", "while", and "do" don't. Commented May 16, 2011 at 23:17
  • l looks a bit like i, but it looks even more like 1.
    – rbwhitaker
    Commented Apr 24, 2012 at 15:44
  • @PeterShor, That is a stopgap hack. It may work for the above sentence, but it doesn't work in general. Also, what if the sentence with the quoted word is the first sentence of the paragraph?
    – Pacerier
    Commented Jul 6, 2014 at 2:23
  • @Pacerier: You have two choices here: either decide that it's okay to start a sentence with a small letter or use stopgap hacks to keep from doing it. English has enough different ways to say things that you should always be able to find a stopgap hack that will succeed. Commented Jul 6, 2014 at 9:38

3 Answers 3

9

Yes, I think it’s an issue. If you want the reader to get your point without being distracted by inconsequential issues of capitalization, you really have no choice but to add words at the beginning of the sentence. It is abnormal to start a sentence with a lowercase letter. Some readers will inevitably be distracted—perhaps even enough to put down the book, as you apparently did!

It would be quite silly to write something like this:

“L” looks a bit like “i”.

when what you mean is that a lowercase l looks a bit like i. Don’t wreck the meaning of your sentence in order to fix a style issue. Instead, write:

A lowercase “l” looks a bit like “i”.

(And as Cerberus notes, italics are better than quotes here, if you can get them.)

It would be distracting to capitalize the keyword for in a book about C++, since the keyword is never capitalized in C++ programs. The only answer is to recast the sentence:

The keywords for, while, and do don’t.

7

Yes, it is an issue; and, yes, that is excellent practice. A stylistically pleasing sentence should never start with a lower-case letter. Numbers are not as bad but should also be avoided if possible. Restructuring is often the key to good writing.

In most cases, it is acceptable to capitalize whatever is in the quote:

"L" looks a bit like "i".

Simply put, algorithm names suggest what they do. "For", "while", and "do" don't.

But I can understand why you should prefer restructuring, especially in the case of l/L, where shape matters (you could say lower-case "l" looks a bit like "i"). Note that italics would be better than quotation marks; in fact they usually are, if you're not actually quoting someone's words.

( Note that this is wrong:

*The "for", "while", and "do" don't.

You need something before "for", such as the "keywords" from your other example. )

9
  • 2
    I don't disagree with you, because my brain likes capital letters at the beginning, but saying "L looks a bit like 1" just doesn't have the same impact as saying "l looks a bit like 1." Aside from restructuring, which would make the problem go away, I feel like this one might be an exception.
    – rbwhitaker
    Commented Apr 24, 2012 at 15:49
  • @Cerberus, Are there any style guides that talk about this issue? If what we are more concerned with is "correctness" instead of "pleasing to the eye", is it ok to start the sentence with the lower case quoted letter?
    – Pacerier
    Commented Jul 6, 2014 at 2:28
  • @Pacerier: I'm not sure there is a difference between those two categories? That which looks jarring is less correct, wouldn't you say? I don't remember which style guides address this issue, but probably more than a few. Commented Jul 6, 2014 at 6:12
  • @Cerberus, Well, I mean grammatically correct.
    – Pacerier
    Commented Jul 7, 2014 at 3:26
  • @Pacerier: That is a very complex notion with multiple definitions. Commented Jul 7, 2014 at 3:55
2

Case 1: It should be: The keywords 'for','while','do' don't.

Case 2: It should be: 'L' looks a bit like 'i'. But 'l' doesn't look like 'a'.

2
  • Well, but 'l' looks more like 'i' than does 'L'. I think this can confuse the readers, for they would have to imagine what the lower-case 'L' looks like while starring at the upper-case 'L'.
    – Job
    Commented Apr 15, 2011 at 21:48
  • Then write it as: The lowercase 'l' looks like 'i'.
    – C_P
    Commented Apr 15, 2011 at 21:50

You must log in to answer this question.

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