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: 8 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-01T10:32:57.000Z (over 5 years ago)
- Last Synced: 2025-01-07T09:46:09.890Z (9 months ago)
- Language: C
- Size: 210 KB
- Stars: 2
- Watchers: 3
- 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
* rpmA 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.