Incorrect results for machine (and other mac-y words)

Bug #892834 reported by David Byers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
titlecase
New
Undecided
Unassigned

Bug Description

>>> titlecase("macho men eat macaroni and macaroons like machines")
'MacHo Men Eat MacAroni and MacAroons Like MacHines'
>>>

Handling of the "Mac" prefix is necessary, but so is a list of exceptions to the rule.

Revision history for this message
David Byers (david-byers) wrote :

If this is left unfixed, I will eventually provide a patch for it (it will necessarily be a bit more complicated than just a list of exceptions).

Revision history for this message
Joseph Price (pricejosephd) wrote :

I went with the exceptions list so far on my branch, but I'll be digging into a better method sometime soon.

If I don't come up with a fix, I'll just expand the exceptions list.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.