For this week’s assignment, I tried to count word frequencies in different sources.
I collected two articles authored by two writers from Times website that talks about banks in Japan and the States.
I converted both articles into two text files.
In processing, I used loadStrings to store author A’s article into array of strings#1, and store authorB’s article into array of string#2, and finally created a new array of strings#3 to include the above 2 array of strings.
Use a new String everything to compile array of String #3.
Then, take this new pile of strings apart using split(function) and delimiters.
Next, I created a new IntDict to store concordance of two articles.
And this is the word count result: