This script analyse and displays the 10 most used words in a text file
Example of script launch on Linux, Python 3.5:
$ python lang_frequency.py -h
usage: lang_frequency.py [-h] -f FILE
optional arguments:
-h, --help show this help message and exit
-f FILE, --file FILE File for analyse
Output example:
$ python lang_frequency.py -f lorem.txt
Most used words:
Word: suscipit Frequency: 14
Word: quaerat Frequency: 13
Word: saepe Frequency: 13
Word: soluta Frequency: 13
Word: minima Frequency: 13
Word: ipsum Frequency: 12
Word: id Frequency: 12
Word: nam Frequency: 12
Word: quisquam Frequency: 12
Word: adipisci Frequency: 11
The code is written for educational purposes. Training course for web-developers - DEVMAN.org