Total words difference

I’m reading the first Harry Potter book in french right now. On the Home tab under ‘Continue reading’ the word count is 97,943 for this book. In the Library tab the word count is 85,700.
Why is there this difference?

2 Likes

Thanks! This is now fixed.

(The issue is that Readlang used to split each text into clickable tokens to offer the click-to-translate functionality, and the number of these tokens was equal to the number of words. This changed when I allowed including punctuation when clicking and dragging across a phrase. This broke the assumption that number of tokens is equal to number of words which certain parts of the code, e.g. the Home tab, were making)

1 Like