Gutencount

Word count for Gutenberg texts

当前为 2023-04-11 提交的版本,查看 最新版本

作者
quartertone
评分
0 0 0
版本
1.0
创建于
2023-04-11
更新于
2023-04-11
大小
2.8 KB
许可证
GPL-3.0
适用于

An accurate word counter for Gutenberg ebook texts.

  • On 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.
    • On the main ebook page, the results will be appended just below the cover image.
    • On any of the reading pages, the counter will appear fixed to the top right corner of the window.
  • On the Gutenberg search results page or the subject page, 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.)
  • words are counted thus: text.trim().split(/--|[\s\*—]+/).length