Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capitalization of Person names in programming [closed]

Is anyone aware of some code/rules on how to capitalize the names of people correctly?

  • John Smith
  • Johan van Rensburg
  • Derrick von Gogh
  • Ruby de La Fuente
  • Peter Maclaurin
  • Garry McDonald

(these may not be correct, just some sample names and how the capitalization could be/work)

This seems like a losing battle...

If anyone has some code or rules on when and how to capitalize names, let me know :)

Cheers, Albert

like image 691
Albert Avatar asked Mar 17 '10 23:03

Albert


People also ask

Do program names need to be capitalized?

Majors, academic programs and degrees Except for languages, such as English, French and Japanese, the names of academic disciplines, majors, minors, programs and courses of study are not proper nouns and should not be capitalized.

What are the rules of capitalization regarding people's names and titles?

Capitalize a person's title when it precedes the name. Do not capitalize when the title is acting as a description following the name.

When should the word be capitalized?

“According to the Chicago Manual of Style 8.170, 'When newspapers and periodicals are mentioned in text, an initial “the,” even if part of the official title is lowercased (unless it begins a sentence).

Do you capitalize officer before a name?

To summarize the capitalization of job titles, you should always capitalize the job title when it comes immediately before the person's name, in a formal context, in a direct address, in a resume heading, or as part of a signature line.


2 Answers

The only sensible way to handle it, in my opinion, is to let the users tell you how their name should be capitalized. Any automatic scheme is going to annoy someone.

like image 99
Jonathan Leffler Avatar answered Sep 19 '22 08:09

Jonathan Leffler


Just tell them you're OLD SCHOOL. That makes it simple and 100% correct:

- JOHN SMITH
- JOHAN VAN RENSBURG
- DERRICK VON GOGH
- RUBY DE LA FUENTE
- PETER MACLAURIN
- GARRY MCDONALD

The same logic also helps with many i18n problems.

like image 33
Mark Harrison Avatar answered Sep 22 '22 08:09

Mark Harrison