An open API service indexing awesome lists of open source software.

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

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:

![](characters-example.png)

### 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)

![](character-pairs-example.png)

### 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
```