Open brchristian opened 5 years ago
If you replace ./titlecase/__init__.py
with an updated version of the original from https://github.com/ppannuto/python-titlecase/tree/master/titlecase this issue seems to be resolved. A sample of your examples are working fine.
As noted in https://github.com/mattstevens/sublime-titlecase/issues/1, this extension works like a dream except with words that start with "mc" or "mac", which get horribly butchered.
For instance:
...which, I think you'll agree, is...not the desired behavior.
In fact, even a great many words that seem like surnames that should get a second capital letter in fact do not. Consider:
None of these should get a second capital in most cases.
This PR includes a whitelist for common names that generally should get a second capital, so that other words beginning with "mac" will be properly left with a single capital.