lingfeat icon indicating copy to clipboard operation
lingfeat copied to clipboard

Wrong formula for the Coleman–Liau index

Open kduxin opened this issue 1 year ago • 4 comments

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. Rather, it should be $$n_{letters} / (n_{tokens} / 100)$$

As a result, the produced score is always around -15.0.

My installed lingfeat version is 1.00b19. Have you fixed it up ?

kduxin avatar Aug 07 '22 05:08 kduxin