https://github.com/arran4/sentencestats
Tools to plot character usage in sentences
https://github.com/arran4/sentencestats
amusement character-counter chart cli for-fun go golang joke meme plotter
Last synced: 3 months ago
JSON representation
Tools to plot character usage in sentences
- Host: GitHub
- URL: https://github.com/arran4/sentencestats
- Owner: arran4
- Created: 2021-08-24T07:24:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-11T02:10:50.000Z (3 months ago)
- Last Synced: 2025-02-11T03:21:51.015Z (3 months ago)
- Topics: amusement, character-counter, chart, cli, for-fun, go, golang, joke, meme, plotter
- Language: Go
- Homepage:
- Size: 60.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# sentencestats: character-pairs and characters - A plotter for character use in a sentence
This library has no real use... Just hacked it together for fun. Hopefully someone else can enjoy it somewhere.
It takes input creates a histogram plot based on character use in the sentence as follows:
## characters
A histogram for each character used:
### Usage
```
$ echo "This is an example. This is also a test. This is also a demo." | go run ./cmd/characters/ -o characters-example.png
# or
$ echo "This is an example. This is also a test. This is also a demo." | go run github.com/arran4/sentencestats/cmd/characters/ -o characters-example.png
# or
$ echo "This is an example. This is also a test. This is also a demo." | go run characters-plot -o characters-example.png
```## character-pairs
A histogram for each character pair used (order ignored)
### Usage
```
$ echo "This is an example. This is also a test. This is also a demo." | go run ./cmd/character-pairs/ -o character-pairs-example.png
# or
$ echo "This is an example. This is also a test. This is also a demo." | go run github.com/arran4/sentencestats/cmd/character-pairs/ -o character-pairs-example.png
# or
$ echo "This is an example. This is also a test. This is also a demo." | character-pairs-plot -o character-pairs-example.png
```