Ignores histograms folder
Fixes text cleaning function. Before, it was stripping new lines and inserting nothing in their place. This resulted in some lost tokens, because it was combining words on either side of the new line into a single word.
Fixes find quotation function. Previously, it started each new quote from the end quote of the previous match. This meant that it was actually grabbing everything in between the quotes as well as the quotes themselves, resulting in long passages of unquoted text that it would treat as quotes. Now it starts from the end_quote plus one.
adds a function that calculates and prints a quick list of the number of quoted sentences in each text in corpus.
Refactors some unused code so that function actually does what I said.
Formatting to keep Eric's eye from twitching.
Makes a new function clean_and_read_text() that calls the other two. Found myself constantly typing in the pair of them in multiple places.
refactors one function and an idea into two functions, one that returns the count of the quoted sentences and another that works in conjunction with a loop to list the number of quoted sentences.
Begins work on a function to calculate the percentages of quoted text in any text. Need to write the function that calculates non quoted text.
Now has a simple function to calculate the percentage of quoted text. Currently it strips out spaces and the backslashes that signify special characters. Not sure if I strip out all punctuation for this. I feel like…no?
Commits all the things. Still working on the function for calculating percentage of text that is quoted.