https://github.com/moonfloof/doc2zipf
See if your Word document conforms to Zipf's Law!
https://github.com/moonfloof/doc2zipf
personal python python-docx python3 zipf zipfs-law
Last synced: 3 months ago
JSON representation
See if your Word document conforms to Zipf's Law!
- Host: GitHub
- URL: https://github.com/moonfloof/doc2zipf
- Owner: moonfloof
- Created: 2017-05-06T14:22:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-06T14:37:33.000Z (about 8 years ago)
- Last Synced: 2025-01-25T20:41:32.967Z (4 months ago)
- Topics: personal, python, python-docx, python3, zipf, zipfs-law
- Language: Python
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# doc2zipf
See if your Word document conforms to Zipf's Law!
## Requirements
* Python 3
* [python-docx](https://python-docx.readthedocs.io/en/latest/)## Usage
```
python doc2zipf.py [DOCUMENT...]Outputs a Word document containing a table with a list of words and the number
of times they occur as "sorted - [DOCUMENT]"
eg. "sorted - Literature Review.docx"DOCUMENT:
A valid Word document in .docx format (Word 2007 onwards)
You can specify multiple documents if you want.
```## Disclaimer
This may or may not be 100% accurate as I have only tested it on a
couple of documents myself. Should be fine for general use, as it was
only really made out of curiosity.