https://github.com/tecnickcom/wordfreq
Parse an input file and return the most frequently used words with their frequency.
https://github.com/tecnickcom/wordfreq
Last synced: 4 months ago
JSON representation
Parse an input file and return the most frequently used words with their frequency.
- Host: GitHub
- URL: https://github.com/tecnickcom/wordfreq
- Owner: tecnickcom
- License: mit
- Created: 2018-10-21T17:22:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-05-13T14:28:56.000Z (about 1 year ago)
- Last Synced: 2025-06-08T18:03:05.989Z (about 1 year ago)
- Language: C
- Size: 211 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# WordFreq
*Parse an input file and return the most frequently used words with their frequency.*
[](https://travis-ci.org/tecnickcom/wordfreq?branch=master)
[](https://coveralls.io/github/tecnickcom/wordfreq?branch=master)
* **category** Tools
* **license** MIT (see LICENSE)
* **author** Nicola Asuni
* **copyright** 2017-2018 Nicola Asuni - Tecnick.com
* **link** https://github.com/tecnickcom/wordfreq
## Description
This program parse an input file and return the most frequently used words with their frequency.
In this context a word is a continuous sequence of characters from 'a' to 'z'.
The words are case-insensitive, so uppercase letters are always mapped in lowercase.
The output is similar to that of the following bash command:
```
cat | tr -cs 'a-zA-Z' '[\n*]' | grep -v "^$" | tr '[:upper:]' '[:lower:]'| sort | uniq -c | sort -nr | head -20
```
## Getting Started
### Development dependencies:
* alien
* astyle
* build-essential
* clang-tidy
* cmake
* debhelper
* devscripts
* dh-make
* doxygen
* fakeroot
* lcov
* make
* pkg-config
* rpm
A wrapper Makefile is available to allows building the project in a Linux-compatible system with simple commands.
All the artifacts and reports produced using this Makefile are stored in the *target* folder.
To see all available options:
```
make help
```
Use the command ```make all``` to build and test all.
Use the command ```make dbuild``` to build everything inside a docker container.
The build and test artifacts are inside the `target` folder.