A simple web application to test whether a text follows Zipf's Law.
Users can paste text or upload a .txt file, then visualize word frequencies with a chart and ranked table.
- Upload
.txtfiles - Paste custom text
- Word frequency analysis
- Interactive chart
- Logarithmic / linear scale toggle
- Zipf coefficient calculation
- Top ranked words table
- HTML
- CSS
- JavaScript
- Chart.js
- MathJax
- Visit Zipf-s-Law
- Paste text or upload a
.txtfile - Click Analyze
- View the chart and results table
You can open the file directly in your browser:
index.html
Or start a local server:
python3 -m http.serverThen open:
http://localhost:8000
Zipf's Law states that the frequency of a word is inversely proportional to its rank:
This behavior appears in many natural language texts.
- Maximum: 10,000 words
- Only
.txtfiles supported
Free to use for educational and research purposes.