mdigger / wstat

Simple text statistic library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple text statistic library

Go Reference

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
stat := wstat.FromString(`text data`)
fmt.Println("reading time:", stat)

About

Simple text statistic library

License:MIT License


Languages

Language:Go 100.0%