https://github.com/mdigger/wstat
Simple text statistic library
https://github.com/mdigger/wstat
golang reading-time text-analysis text-statistic-tool
Last synced: 4 months ago
JSON representation
Simple text statistic library
- Host: GitHub
- URL: https://github.com/mdigger/wstat
- Owner: mdigger
- License: mit
- Created: 2021-05-31T23:44:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T01:28:54.000Z (over 3 years ago)
- Last Synced: 2024-03-21T09:33:43.429Z (about 2 years ago)
- Topics: golang, reading-time, text-analysis, text-statistic-tool
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple text statistic library
=============================
[](https://pkg.go.dev/github.com/mdigger/wstat)
Library for quick counting the simplest statistics on the text:
- the total number of characters,
- the number of spaces and separators,
- the number of punctuation symbols,
- the number of digits,
- the number of words,
- allows you to perform calculations in the stream or addition of individual lines,
- supports selection of text from HTML
- counting the number of machine-visiting (typewritten) pages and author's pages
- calculation of reading time for different languages and/or different speeds
```golang
stat := wstat.FromString(`text data`)
fmt.Println("reading time:", stat)
```