Distinguishing Clinton and Trump


I'm going to key in on the fact that "you" is #5 for Trump and not in Clinton's top 10.

For the 2nd debate extracts, just do a word count and see if 'you' is in the top 10 ...

files = ['second_debate_excerpt_1.txt','second_debate_excerpt_2.txt']
for file in files:
         f = open(file)
         l = f.read().lower().split()
         counts = {}
         for word in l:
             if not word in counts: counts[word] = 0
             counts[word] += 1
         top10 = sorted([item for item in counts.items()],key=lambda x:x[1],reverse=True)[:10]
         for w in top10:
         if 'you' in [w for w,count in top10]:
             print(file,'is probably Trump')
             print(file,'is probably Clinton')
and      25
you      23
the      18
a        11
that     11
i        11
to       9
so       7
have     7
of       6
second_debate_excerpt_1.txt is probably Trump

the      21
and      15
to       11
in       9
i        9
of       8
we       7
a        6
is       6
on       5
second_debate_excerpt_2.txt is probably Clinton

The actual excerpts are below. It is clear that the identification above is correct! Of course, it is not at all certain that this method of identifying will be successful outside the context of the debate.


Excerpt 1

Well you owe the president an apology because as you know very well, your campaign, Sidney Blumenthal, he’s another real winner that you have and he’s the one that got this started along with your campaign manager and they were on television just two weeks ago, she was saying exactly that. So you really owe him an apology. You’re the one that sent the pictures around, your campaign sent the pictures around with President Obama in a certain garb, that was long before I was ever involved. So you actually owe an apology. Number two, Michelle Obama. I’ve gotten to see the commercials that they did on you and the I’ve gotten to see some of the most vicious commercials I’ve ever seen, of Michelle Obama talking about you, Hillary. So you talk about framed, go back and take a look at those commercials. A race where you lost, fair and square, unlike the Bernie Sanders race where you won, but not fair and square, in my opinion and all you have to do is take a look at WikiLeaks and just see what they said about Bernie Sanders and see what Debra Wasserman Schultz had in mind, because Bernie Sanders, between superdelegates and Debra Wasserman Schultz, he never had a chance and I was so surprised to see him sign on with the devil. But when we talk about apology, I think the one that you should really be apologizing for, the thing that you should be apologizing for are the 33,000 e-mails that you deleted and that you acid washed and the two boxes of e-mails and other things last week that were taken from an office and are now missing. And I tell you what, I didn't think I would say this, but I'm going to and I hate to say it. But if I win, I am going to instruct my attorney general to get a special prosecutor to look into your situation. Because there has never been so many lies, so much deception. There has never been anything like it. And we’re gonna have a special prosecutor. When I speak, I go out and speak, the people of this country are furious. In my opinion, the people that have been long time workers at the FBI are furious. There has never been anything like this where e-mails, and you get a subpoena. You get a subpoena, and after getting the subpoena you delete 33,000 e-mails and then you acid wash them or bleach them, as you would say. Very expensive process. So we’re gonna get a special prosecutor and we’re gonna look into it. Because you know what, people have been -- their lives have been destroyed for doing 1/5 of what you have done. And it’s a disgrace, and honestly, you oughta be ashamed of yourself.

Excerpt 2

The situation in Syria is catastrophic and everyday that goes by, we see the results of the regime, by Assad in partnership with the Iranians on the ground and the Russians in the air, bombarding places in particular aleppo, where there are hundreds of thousands of people, probably about 250,000 people still left. And there is a determined effort by the Russian Air Force to destroy Aleppo in order to eliminate the last of the Syrian rebels who are really holding out against the Assad regime. Russia hasn't paid any attention to ISIS. They are interested in keeping Assad in power. So I, when I was secretary of state advocated, and I advocate today a no-fly and safe zones. We need some leverage with the Russians because they are not going to come to the negotiating table for a diplomatic resolution unless there is leverage over them. And we have to work more closely with our partners and allies on the ground. But I want to emphasize that what is at stake here is the ambitions and aggressiveness of Russia. Russia has decided it is all in in Syria, and they’ve also decided who they want to see become President of the United States too and it's not me. I stood up to Russia; I’ve taken on Putin and others and I would do that as president. I think wherever we can cooperate with Russia, that's fine and I did, as Secretary of State, that's how we got a treaty reducing nuclear weapons, it’s how we got the sanctions on Iran that put a lid on the nuclear weapons program without firing a single shot. So I would go with more leverage than we have now. But I support the efforts to investigate for crimes, war crimes, committed by the Syrians and the Russians and try to hold them accountable.