\documentclass{article}
\usepackage[utf8]{inputenc}

\title{PS6 Hoffman}
\author{Abigail Hoffman }
\date{March 2021}

\usepackage{natbib}
\usepackage{graphicx}

\begin{document}

\maketitle

\section{PS 6 Questions}


For my data, I chose to clean a data set needed for my masters LIS class. I am still debating on my topic for this course, so I chose something that would help progress my work in another class. 

First data I grabbed from the Gutenberg open access classics. The first grouping was from HG Wells books: The Time Machine, The War of the Worlds, The Invisible Man, and The Island of Doctor Moreau. 
I tokenized the book into one word per line and removed all the stop words such as "the" "of" "to".Renamed the variables in the data from the PMF of each word.Sorted by descending for better visualization. I only used words that had frequencies larger than 0.002.
\begin{figure}[h!]
\centering
\includegraphics[scale=0.8]{PS6a_Hoffman.png}
\caption{HG Wells Word frequencies}
This image helps show the frequency of HG Wells common words from each book. This helps the audience understand his style of writing. 
\label{fig:PS6a}
\end{figure}

I created a Word Cloud of HG Well's text just for fun. Hope you enjoy. 
\begin{figure}[h!]
\centering
\includegraphics[scale=0.75]{PS6d_Hoffman.png}
\caption{WordCloud}
Word clouds are visuals that use frequency to increase and bold words in the cloud. This just transforms data into something more "fun".
\label{fig:WordCloud}
\end{figure}
 
I then, repeated the process for Bronte sisters' books: Jane Eyre, Wuthering Heights, The Tenant of Wildfell Hall, Villette, and Agnes Grey. 
\begin{figure}[h!]
\centering
\includegraphics[scale=0.8]{PS6b_Hoffman.png}
\caption{Bronte sisters Word frequencies}
This image helps show the frequency of the Bronte sister's common words from the books pulled. This helps the audience understand their style of writing. 
\label{fig:PS6b}
\end{figure}

Finally, I arranged each individual visual plot to be side by side for an easier compare and contrast.

\begin{figure}[h!]
\centering
\includegraphics[scale=0.8]{PS6c_Hoffman.png}
\caption{Left: HG Wells Right: Bronte Sisters}
This visual allows the audience to easily compare and contrast the word frequencies. It shows that on the left HG Wells used a wider variety meanwhile Bronte sisters on the right used a more equal distribution of words. 
\label{fig:PS6c}
\end{figure}
\section{PS 6 Visuals}


\end{document}
