[texhax] intelligent title capitalization?

Uwe Lueck uwe.lueck at web.de
Mon Mar 14 23:07:05 CET 2011

"Mike B." <mb78aa at yahoo.com>, 22.02.2011 04:24:45:
> anyone knows a package which will intelligently capitalize titles, for example:
> \autocap{this is a title}
> gives
> This is a Title

The coolstr package already is quite smart in detecting "numerical" strings.

The problem with this request is (in my view) that I have never seen any algorithm on capitalization in titles. The "rule" is always indicated by examples only, nobody seems to know an algorithm.

The task may be a major research project in computer linguistics or so. Maybe the Google people can help you.

It may seem that a good algorithm would be "capitalize nouns, verbs, adjectives, and nothing else" -- how do you want to distinguish them from other items?

One example that just came to my mind: "Take the A Train" ("Take the a Train" would be wrong) ...




More information about the texhax mailing list