Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My reading time from 60+ to 40+ minutes all of a sudden without any modification of the source file #18

Open
kleinbottle opened this issue Nov 22, 2023 · 6 comments

Comments

@kleinbottle
Copy link

kleinbottle commented Nov 22, 2023

My reading time dropped from 60+ to 40+ minutes all of a sudden without any modification of the source file.

How or why could this happen?

The raw number of words from wc on the .md file is 14137.

Is there any possibility of an arithmetic overflow?

@kleinbottle kleinbottle changed the title My word count dropped from 60+ to 40+ minutes all of a sudden without any modification of the source file My reading time from 60+ to 40+ minutes all of a sudden without any modification of the source file Nov 23, 2023
@gandreadis
Copy link
Owner

Hi @kleinbottle, this module does not implement or provide reading time estimates. Are you sure that this is the right package/repository?

@kleinbottle
Copy link
Author

Hi @kleinbottle, this module does not implement or provide reading time estimates. Are you sure that this is the right package/repository?

I use it to estimate reading time by a simple division of word count by 200 for an estimate of reading time in minutes. I was getting an estimate of 60 minutes for a long blog that suddenly dropped to 40 before I finished it. That is why I filed an issue on this site.

I will double check for an error at my end, by getting actual word count, and revert. Thanks.

@kleinbottle
Copy link
Author

mwc content/blogs/varieties-of-multiplication/varieties-of-multiplication.md

7927

pandoc --lua-filter wordcount.lua content/blogs/varieties-of-multiplication/varieties-of-multiplication.md

12173 words in body
61031 characters in body
73285 characters in body (including spaces)

These were the results the blog in question.

For all other blogs, the two methods are close enough to not merit mention.

Thanks.

@gandreadis
Copy link
Owner

Thanks for the clarification. If I understand this correctly, there is a discrepancy between the wordcount of this repository’s tool and another word counting tool. I cannot verify or test what could be the cause of this, as I do not have access to the text in question. It could be due to a variety of factors, such as special characters/constructs/… If you can share the source text that you are counting, maybe I can see what could be causing the discrepancy. To be clear: I do not think that there is any chance of an arithmetic overflow, with these low numbers.

@kleinbottle
Copy link
Author

kleinbottle commented Jan 13, 2024

Sorry for the delayed response but I was not monitoring this thread, although I thought I was.

If you can share the source text that you are counting, maybe I can see what could be causing the discrepancy.

The displayed HTML of the blog is here.

Please note that the reading time dropped from 60 to 40 minutes, after I augmented the text.

The source file proper is a markdown file:
varieties-of-multiplication.md

NB: Reading time was computed locally as 200 * word-count, IIRC. If the word count you now get with the source is OK, I suggest letting the matter rest there. Thanks.

@gandreadis
Copy link
Owner

Hi @kleinbottle, due to limited time, I cannot debug this further, unfortunately. If you have narrowed this down to a specific paragraph of text / set of special characters, though, please let me know and I will see if I can fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants