The program gets the path to a text file as an attribute, and prints 10 most frequent words from the text.
To use the program you need a Python 3.5 installed interpreter
Run on Linux
$ python3 lang_frequency.py warandpeace.txt
Самые часто встречающиеся слова в тексте:
Слово и встречается 14601 раз(а)
Слово в встречается 7013 раз(а)
Слово не встречается 5934 раз(а)
Слово что встречается 5398 раз(а)
Слово он встречается 5266 раз(а)
Слово на встречается 4166 раз(а)
Слово с встречается 3946 раз(а)
Слово как встречается 2956 раз(а)
Слово его встречается 2694 раз(а)
Слово я встречается 2238 раз(а)
The code is written for educational purposes. Training course for web-developers - DEVMAN.org