-
Notifications
You must be signed in to change notification settings - Fork 16
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
Wrong formula for the Coleman–Liau index #6
Comments
I see. You are correct. Thank you @kduxin. I'll make the appropriate changes. |
Hi Bruce, |
Thank you Professor Queralt for the suggestions, including the one at #4 . I am planning to restructure this project and release a better version. Though I have been busy due to my job since releasing this library, I sincerely appreciate the continued attention. |
The new update will likely be in November. |
Hi Lee,
There are two places wrong in the formula.
First, the original Coleman-Liau counts the number of letters per 100 words. Whereas in the code, it counts the number of tokens per 100 words.
Second, it is wrong to account for "per 100 words" by dividing the number by 100.
$$n_{letters} / (n_{tokens} / 100)$$
Rather, it should be
As a result, the produced score is always around -15.0.
My installed lingfeat version is 1.00b19. Have you fixed it up ?
The text was updated successfully, but these errors were encountered: