How to Use
- Both files available in the shared project folder
- general_function_Proj2.py
- In the command line, enter the names of two .txt files to see how the code generally works. Functions work slightly differently here than in the main python file which I used for the data seen in the spreadsheets, but due to the nature of my project and the massive amounts of data and files used, my main file cannot easily show the use of my functions.
- HenryBrigham_Proj2.py
- In the terminal command line, enter the file name, (Type of Analysis), (Procedure)
- Type of Analysis
- "1" if you just want to run a procedure for individual books of the Bible
- Procedures include, "word" for the average word length, "sentence" for the average sentence length (in words), "unique" for the proportion of unique words used, and "ratio." For ratio, you will additionally need to input "short" for short:medium words or "long" for long:medium words.
- "2" if you want to compare each pair of books in the Bible
- Procedures include, "common" for the number of similarities between the lists of the top 50 words used in each book, and "invariant" for the difference in proportion of function words used in each book. Function words are taken from a list of 40 of the most common function words in the Bible.