titlecase icon indicating copy to clipboard operation
titlecase copied to clipboard

capitalize "if" and "en" - chicago style

Open kevinlawler opened this issue 1 year ago • 2 comments

Remove if and en from short words list

Capitalize if and en as in Chicago style

could add a command-line flag like --chicago if for some reason you're attached to the other styles

kevinlawler avatar Oct 07 '24 21:10 kevinlawler

The whole thing is an implementation of John Gruber’s style, who basically follows the NY Times Manual of Style. I’m not super keen on deviations from that, though I’m not opposed to adding a switch to tweak it. However I don’t know if --chicago sets the right expectations; is that all that an option with that name should change? Then again, if actually implementing the Chicago style means too many changes, I would balk at that as well, so…

However – the module version of the code already allows modifying the small-word list by changing the @SMALL_WORD array, so you can already make that change yourself if you are using it from other Perl code. And I wouldn’t mind adding a command line option to the program version of the code to read a replacement small-word list from a file. Would that get you sorted?

ap avatar Oct 16 '24 01:10 ap

My first preference is a --chicago or --cmos. When I looked at it the only change i noticed was this change in the word list. This could be accomplished by a simple setminus of the two items. See https://capitalizemytitle.com/style/Chicago/ I don't think the bar here should be full and total compliance, but rather "what can we quickly get in a script of this scope".

My second preference is to accept the wordlist file change.

My use case is I use this via homebrew but my current version has this hacked in which is senseless and unmaintainable versus having it upstream.

kevinlawler avatar Oct 16 '24 13:10 kevinlawler