Word Count

From Librivox wiki
Revision as of 18:08, 11 July 2023 by Msfry (talk | contribs) (→‎Websites: added Word Counter Plus to list)
Jump to navigationJump to search

Here are a number of useful tools to help both readers and book coordinators get accurate word counts.

Websites

Below are various websites that provide an interface to count the number of words in copy-pasted text. No word limits to what you can paste in, but partial word count of highlighted portions of text is either not available, or requires scrolling to find. All identify the top 10 keywords in the text, check spelling, and to accomodate writers, give a character count useful for typing responses in Twitter, Facebook, etc.

  • [1] Word Counter Plus, extension installs in Edge, Chrome, Brave and other browsers upon Get. Counts words and characters in highlighted segment, in a hover over window.
  • wordcounter.net counts highlighted segments, but word count is displayed at bottom.
  • wordcounter.io highlighted portions not counted
  • thewordcounter.com highlighted portions not counted
  • easywordcount.com highlighted portions not counted
  • wordstotime.com gives an estimated reading time (depending on your speaking speed -- slow, medium, fast) as well as word count.

Document Editors

Most document editors (Microsoft Word, Google Docs, LibreOffice, etc) and some basic text editors have a built-in word counting feature. Copy and paste your text into a document, select the text you want to count.

  • Microsoft Word
    • Review → Word Count
    • MS Word will also automatically display the word count on the bottom status bar, unless this feature has been disabled. To re-enable it, right-click on the bottom status bar and tick the Word Count option. Just highlight the words you want counted, either part or all of the text. Wait a moment and the word count will display (lower left corner) This is a powerful program, great for dividing up whole books into sections, visually dividing long chapters into approximately equal segments, etc. Video tutorial to be added soon.
  • LibreOffice Writer
    • Tools → Word Count
    • A running word count is displayed on the bottom status bar. The status bar cannot be modified but the entire bar may be toggled hidden or displayed by selecting View → Status Bar
  • Google Docs
    • Tools → Word count
    • Keyboard shortcut: Ctrl + Shift + C

Web Browser Bookmarklets

These bookmarklets can be used with most modern web browsers. The code for these scripts can be found by following the links below, or you can find them as Tampermonkey/Greasemonkey scripts on GreasyFork.org.

Gutencount (word counter)

Get the script here: Gutencount on vox.quartertone.net.
Also available as a Tampermonkey/Greasemonkey script, which can be found here: Gutencount on GreasyFork.org
(The Tampermonkey version will not activate on non-Gutenberg sites)

Here are some tutorial videos on how to use this script.

This is a "universal" word counter bookmarklet. With a single click, you can get an accurate word count for the body of a Gutenberg book.

  • If you select some text, it will count the words in the selection.
  • On a normal webpage, it will count all the text on the page
  • In a Guterberg ebook page it will count the ebook text, excluding the Gutenberg disclaimer and legalese.
This will work whether you are on the main page, the HTML page (or as-submitted), or on the plain text page.
  • Slight discrepancies may be present due to extra text (Transcriber's notes, Book summary, subtitles, etc) in some formats that are not present in the others.
  • BONUS: On the Gutenberg search results page, it will append the word count to all search results! (So, if you're looking for a short short story, you don't have to go counting every book that comes up in search.)
  • Update(2023-04-11): Word/character count will now be displayed in a fixed box in the upper right corner of the window, instead of a pop-up alert. Double click to dismiss.
  • NEW(2023-04-14): When in the HTML page of an ebook, click on the chapter heading to get a word count for that chapter.

Chapter Counter (beta)

Get the script here: ChapterCounter on vox.quartertone.net.

This script counts the number of words in indexed chapters of a Gutenberg book. Navigate to the HTML or the plain text page, and activate the script.

Current Limitations:

  • The Table of contents (TOC) must be present, and labeled Contents.
  • TOC should not include any sections that appear before the contents list (eg, Preface).
  • Does not work if chapter headings do not match the TOC (eg, TOC lists Chapter IV, but chapter headings appear as IV).
  • Does not work if the TOC is formatted strangely (eg page numbers or other text interspersed between the chapter titles).

For questions or issues with either of the above scripts, please post in this forum thread, or send a Private Message to quartertone.

Google Chrome Counter

The link to the extension in the Google Chrome store: https://chrome.google.com/webstore/detail/word-counter-plus/fpjegfbcdijjfkceenlfoehpcakfgldj

Click "Add to Chrome". Once installed (you may need to restart your browser after adding it), highlight the text you want the word count for and right-click. There should be a Word Counter Plus option in the right click menu. Once selected, it will display the word count for the selected text.

Gutenberg Progressive word counter

This script is adapted from PeeGee's Gutenberg word counting script. The original version of the script was no longer functioning, so this de-bugged version was created. Information about the previous version of this script can be found archived at: PeeGee's Script.

How it Works

The script runs against the HTML ebooks on Project Gutenberg.

  1. you click the paragraph where you want to start the count,
  2. it asks you the target number of words,
  3. it quickly goes through every paragraph from that point onwards and counts the words and the running total
  4. it stops when it reaches the target, or the end of the chapter if before
  5. the page is temporarily changed to display the word counts right there at the end of each paragraph
  6. you can repeat this as many times as you like, each time you click a paragraph the temporary page changes are removed

Screenshots

Here are a few screenshots to illustrate the process:

Installing the Script

  • This script requires the TamperMonkey browser extension which is available for most modern browsers.
  • Instructions for installing the extension can be found in the GutenCount tutorial playlist above.
  • Once Tampermonkey is installed, go to the Greasyfork page for the script:


Limitations

The script only works on the Gutenberg online HTML books, not the text or zipped HTML, or other formats.


Support

If you have any problems installing or using this script you can either post a message in this forum thread, or send a Private Message to quartertone.