Word Count: Difference between revisions

From Librivox wiki
Jump to navigationJump to search
Content deleted Content added
→‎Websites: removed awordcounter.com per msfry request
Rearranging order of items from simplest to more complicated
Line 1: Line 1:
Here are a number of useful tools to help both readers and book coordinators get accurate word counts.
LibriVox member ''peegee'' has written a script for web browsers which may make the BC's job of compiling word counts for the Magic Window a little easier.


== How it Works ==
== Websites ==
Various websites provide an interface to count the number of words in copy-pasted text. Below are some sites that provide accurate word counts:
The script runs against the HTML ebooks on [http://www.gutenberg.org/wiki/Main_Page Project Gutenberg].
# you click the paragraph where you want to start the count,
# it asks you the target number of words,
# it quickly goes through every paragraph from that point onwards and counts the words and the running total
# it stops when it reaches the target, or the end of the chapter if before
# the page is temporarily changed to display the word counts right there at the end of each paragraph
# you can repeat this as many times as you like, each time you click a paragraph the temporary page changes are removed


* [https://wordcounter.net/ wordcounter.net]
== Screenshots ==
* [https://wordcounter.io/ wordcounter.io]
Here are a few screenshots to illustrate the process:
* [https://thewordcounter.com/ thewordcounter.com]
* [https://easywordcount.com/ easywordcount.com]


<gallery>
Image:Wordcount1.png|The first prompt
Image:Wordcount2.png|Choose target number
Image:Wordcount3.png|The count displayed
</gallery>


== Installing the Script ==
== Document Editors ==
The method of installation depends on the browser (Firefox and Chrome may need to be re-started after installation, Opera does not):


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.
=== Firefox ===
# [https://addons.mozilla.org/en-US/firefox/addon/748 Greasemonkey] You will first need the GreaseMonkey add-on for Firefox which is available from this link.
# [http://userscripts-mirror.org/scripts/show/69969 Firefox Install] Once you have GreaseMonkey installed, go here and click on the '''Install''' button


* Microsoft Word
=== Google Chrome ===
** '''Review &rarr; Word Count'''
#[https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en TamperMonkey] First you'll need to install TamperMonkey from the Chrome store.
** 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)
#[http://userscripts-mirror.org/scripts/show/70234 WordCount] Then, you'll be able to install the word count extension from here.
* LibreOffice Writer
** '''Tools &rarr; 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 &rarr; Status Bar'''
* Google Docs
** '''Tools &rarr; Word count'''
** Keyboard shortcut: '''Ctrl + Shift + C'''


=== Opera ===
# To enable User JavaScript, use Tools > Preferences > Advanced > Content > JavaScript options, and select the directory where you will put your User JavaScript files (probably best if its a new folder with nothing else in it).
# [http://userscripts-mirror.org/scripts/show/70234 the script] then go to the script
# click the Install button to get the script in a new tab in Opera.
# from the Opera menu click ''File > Save As'' to save it into the folder you chose in the first step (probably best to just keep the suggested file-name - whatever name you choose it MUST end in .user.js )


== Web Browser Bookmarklets ==
== 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 [http://forum.librivox.org/viewtopic.php?t=24437 this forum thread] or send a Private Message to ''peegee''.

== Other Alternatives ==

=== 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].
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) ====
=== Gutencount (word counter) ===


<u>Get the script here</u>: [https://vox.quartertone.net/#gc Gutencount on vox.quartertone.net].<br/>
<u>Get the script here</u>: [https://vox.quartertone.net/#gc Gutencount on vox.quartertone.net].<br/>
Line 66: Line 47:




==== Chapter Counter (beta) ====
=== Chapter Counter (beta) ===


<u>Get the script here</u>: [https://vox.quartertone.net/#cc ChapterCounter on vox.quartertone.net].
<u>Get the script here</u>: [https://vox.quartertone.net/#cc ChapterCounter on vox.quartertone.net].
Line 81: Line 62:




=== Websites ===
== PeeGee's script ==
Various websites provide an interface to count the number of words in copy-pasted text. Below are some sites that provide accurate word counts:


LibriVox member ''peegee'' has written a script for web browsers which may make the BC's job of compiling word counts for the Magic Window a little easier.
* [https://wordcounter.net/ wordcounter.net]
* [https://wordcounter.io/ wordcounter.io]
* [https://thewordcounter.com/ thewordcounter.com]
* [https://easywordcount.com/ easywordcount.com]


=== Document Editors ===
=== How it Works ===
The script runs against the HTML ebooks on [http://www.gutenberg.org/wiki/Main_Page Project Gutenberg].
# you click the paragraph where you want to start the count,
# it asks you the target number of words,
# it quickly goes through every paragraph from that point onwards and counts the words and the running total
# it stops when it reaches the target, or the end of the chapter if before
# the page is temporarily changed to display the word counts right there at the end of each paragraph
# you can repeat this as many times as you like, each time you click a paragraph the temporary page changes are removed


=== Screenshots ===
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.
Here are a few screenshots to illustrate the process:


<gallery>
* Microsoft Word
Image:Wordcount1.png|The first prompt
** '''Review &rarr; Word Count'''
Image:Wordcount2.png|Choose target number
** 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)
Image:Wordcount3.png|The count displayed
* LibreOffice Writer
</gallery>
** '''Tools &rarr; 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 &rarr; Status Bar'''
=== Installing the Script ===
* Google Docs
The method of installation depends on the browser (Firefox and Chrome may need to be re-started after installation, Opera does not):
** '''Tools &rarr; Word count'''

** Keyboard shortcut: '''Ctrl + Shift + C'''
==== Firefox ====
# [https://addons.mozilla.org/en-US/firefox/addon/748 Greasemonkey] You will first need the GreaseMonkey add-on for Firefox which is available from this link.
# [http://userscripts-mirror.org/scripts/show/69969 Firefox Install] Once you have GreaseMonkey installed, go here and click on the '''Install''' button

==== Google Chrome ====
#[https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en TamperMonkey] First you'll need to install TamperMonkey from the Chrome store.
#[http://userscripts-mirror.org/scripts/show/70234 WordCount] Then, you'll be able to install the word count extension from here.

==== Opera ====
# To enable User JavaScript, use Tools > Preferences > Advanced > Content > JavaScript options, and select the directory where you will put your User JavaScript files (probably best if its a new folder with nothing else in it).
# [http://userscripts-mirror.org/scripts/show/70234 the script] then go to the script
# click the Install button to get the script in a new tab in Opera.
# from the Opera menu click ''File > Save As'' to save it into the folder you chose in the first step (probably best to just keep the suggested file-name - whatever name you choose it MUST end in .user.js )

=== 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 [http://forum.librivox.org/viewtopic.php?t=24437 this forum thread] or send a Private Message to ''peegee''.

Revision as of 01:09, 17 April 2023

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

Websites

Various websites provide an interface to count the number of words in copy-pasted text. Below are some sites that provide accurate word counts:


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

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 on 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.


PeeGee's script

LibriVox member peegee has written a script for web browsers which may make the BC's job of compiling word counts for the Magic Window a little easier.

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

The method of installation depends on the browser (Firefox and Chrome may need to be re-started after installation, Opera does not):

Firefox

  1. Greasemonkey You will first need the GreaseMonkey add-on for Firefox which is available from this link.
  2. Firefox Install Once you have GreaseMonkey installed, go here and click on the Install button

Google Chrome

  1. TamperMonkey First you'll need to install TamperMonkey from the Chrome store.
  2. WordCount Then, you'll be able to install the word count extension from here.

Opera

  1. To enable User JavaScript, use Tools > Preferences > Advanced > Content > JavaScript options, and select the directory where you will put your User JavaScript files (probably best if its a new folder with nothing else in it).
  2. the script then go to the script
  3. click the Install button to get the script in a new tab in Opera.
  4. from the Opera menu click File > Save As to save it into the folder you chose in the first step (probably best to just keep the suggested file-name - whatever name you choose it MUST end in .user.js )

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 peegee.