Is there bias in news reports?
A Team Project
I provide links to two recently publiched articles. One comes from en
established liberal periodical and the other from an established
conservative periodical. Are certain words more common from one side of
the political spectrum? Your assignment is to find out if liberals like
certain words and conservatives like others.
Specifically, you should write a program that will read an article,
parse each line into words, and keep track of how many times each word
occurred. Run this program for each of the two articles and print out
the 20 most frequently appearing words in each article.
Article
One
Article
Two
You may think you need to use a StringTokenizer, but it turns out that
is old programming. The better thing to use is
string.split(regex). Read about it here.
This is a team project:
TEAM 1: Grant Fomin and TingWen Yin
TEAM 2: Jacob Ehrman, Jacob Iwaniac, Hodong Kim