Gutencount

Accurate word counter for Gutenberg texts

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

作者
quartertone
评分
0 0 0
版本
1.1
创建于
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.
    • If you are on the main ebook page, the results will be appended just below the cover image.
    • If you are on any of the reading pages, the counter will appear in a fixed box in 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