Skip to content

Instantly share code, notes, and snippets.

View tomasz-osadzinski's full-sized avatar

authenticated doomer tomasz-osadzinski

  • Chicago
  • 13:23 (UTC -05:00)
View GitHub Profile
@arrowtype
arrowtype / count-word-frequency.py
Last active September 8, 2026 04:06
A simple Python script to count and rank the frequency of words in a text file, e.g. for verifying that you are kerning important pairs for specific content
"""
Simple Python script to count word frequency in a given text document.
Started from
https://www.geeksforgeeks.org/python-count-occurrences-of-each-word-in-given-text-file/
Usage: Update the file path below, then run in the command line.
"""
# Relative path to a .txt file