From 532dc89868bc47d7149145aaa961a50b5ab0dd24 Mon Sep 17 00:00:00 2001 From: Shibo Lyu Date: Fri, 20 May 2022 18:18:51 +0800 Subject: [PATCH] fix: CLI formula. --- Sources/Readability/Scorers/ColemanLiauIndex.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Readability/Scorers/ColemanLiauIndex.swift b/Sources/Readability/Scorers/ColemanLiauIndex.swift index d9baca1..278b439 100644 --- a/Sources/Readability/Scorers/ColemanLiauIndex.swift +++ b/Sources/Readability/Scorers/ColemanLiauIndex.swift @@ -28,7 +28,6 @@ public struct RAColemanLiauIndexScorer: RAScorer { let l = metrics![.characterCount]! * 100 / wordCount let s = metrics![.sentenceCount]! * 100 / wordCount - let cloze = 141.8401 - (0.214590 * l) + (1.079812 * s) - return (-27.4004 * cloze) + 23.06395 + return (0.0588 * l) - (0.296 * s) - 15.8 } }