https://github.com/restioson/freqs
Simple word frequency counter
https://github.com/restioson/freqs
Last synced: over 1 year ago
JSON representation
Simple word frequency counter
- Host: GitHub
- URL: https://github.com/restioson/freqs
- Owner: Restioson
- License: apache-2.0
- Created: 2021-10-25T12:48:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T13:38:06.000Z (over 4 years ago)
- Last Synced: 2025-02-01T12:29:35.722Z (over 1 year ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# freqs
Find frequency of a set list of words in a directory of plaintext files. Splits by unicode whitespace
and then removes ascii punctuation. Invoke with `freqs path_to_txts/ word1 word2 word3` and so on. The output is CSV,
separated by commas, and sorted first by the alphabetical order of the filenames, and then by the frequency of the
words. Words that don't exist in a certain file are still added to the output, with a count of 0. There is a header row
in the output CSV.