Author ElGordo
Recipients ElGordo
Date 2007-12-13.18:06:36
SpamBayes Score 0.0188707
Marked as misclassified No
Message-id <>
Summary: "title" method of string objects does not 
   handle contractions and possessives correctly.
See the following short program and its results for examples.
Test of string method 'capitalize'


for item in stringList:
    spaces=' '*(12-n)
    itemTitled = item.title()
    isATitle = itemTitled.istitle()
    print "%s -> %s%s is title=%s" %(item, spaces, itemTitled, isATitle)

Results in:
we're ->        We'Re is title=True
you're ->       You'Re is title=True
they're ->      They'Re is title=True
i've ->         I'Ve is title=True
we've ->        We'Ve is title=True
you've ->       You'Ve is title=True
they've ->      They'Ve is title=True
can't ->        Can'T is title=True
won't ->        Won'T is title=True
doesn't ->      Doesn'T is title=True
haven't ->      Haven'T is title=True
daren't ->      Daren'T is title=True
shouldn't ->    Shouldn'T is title=True
weren't ->      Weren'T is title=True
wasn't ->       Wasn'T is title=True
i'm ->          I'M is title=True
Date User Action Args
2007-12-13 18:06:37ElGordosetspambayes_score: 0.0188707 -> 0.0188707
recipients: + ElGordo
2007-12-13 18:06:37ElGordosetspambayes_score: 0.0188707 -> 0.0188707
messageid: <>
2007-12-13 18:06:36ElGordolinkissue1614 messages
2007-12-13 18:06:36ElGordocreate