You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
Remove
if
anden
from short words listCapitalize
if
anden
as in Chicago stylecould add a command-line flag like
--chicago
if for some reason you're attached to the other stylesThe text was updated successfully, but these errors were encountered: