Skip to content

nikitaeverywhere/edu-texts-analyzer

Repository files navigation

Texts Statistical Analysis

Analyzes texts for compliance with the Zipf's second law and Heaps' law.

Prerequisites

Having Python 3 installed, clone the project and install its dependencies:

git clone git@github.com:ZitRos/edu-texts-analyzer.git
cd edu-texts-analyzer
pip3 install -r requirements.txt

Texts for analysis are taken from texts directory. Every file in this directory and its subdirectories will be treated as a text file. There are already some articles, but you may place your own.

Zipf's Law

Having Python 3 installed, install dependencies and run the program:

py index.py

It will generate Zipf.xlsx file with word ranks/frequencies data.

Zipf's Law

Heaps' Law

Output will go to Heaps.xlsx file.

Heaps Law

About

Analyzes texts for compliance with the second Zipf's and Heaps law.

Topics

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages