DeepSeek Harness Remote
DeepSeek Harness Remote: DeepSeek Harness 실행 PC와 모바일·PC를 안전하게 연결해 어디서나 작업 이어받기
텍스트 가독성을 즉시 확인하고 Flesch‑Kincaid 등급·읽기 쉬움·개선 제안을 제공합니다
Check your text's readability score instantly. Get Flesch-Kincaid grade level, reading ease, and improvement suggestions. Free readability checker.
생산성SwiftGitHub @BeLikeNative온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Six classic English readability formulas in Swift: Flesch Reading Ease, Flesch-Kincaid, Gunning Fog, SMOG, Coleman-Liau and ARI. No dependencies.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Six classic English readability formulas in Swift, with no dependencies and no data files.
import ReadabilityScoreKit
if let scores = Readability.score("The cat sat on the mat. The dog ran.") {
print(scores.fleschReadingEase) // 117.66750000000002
print(scores.readingEaseBand) // veryEasy
print(scores.averageGradeLevel) // -1.6140688888888892
}
| Score | Published as | Formula |
|---|---|---|
fleschReadingEase | Flesch, 1948 | 206.835 - 1.015 x (words / sentences) - 84.6 x (syllables / words) |
fleschKincaidGrade | Kincaid et al., 1975 | 0.39 x (words / sentences) + 11.8 x (syllables / words) - 15.59 |
gunningFog | Gunning, 1952 | 0.4 x [(words / sentences) + 100 x (complex words / words)] |
smogIndex | McLaughlin, 1969 | 1.0430 x sqrt(polysyllables x (30 / sentences)) + 3.1291 |
colemanLiauIndex | Coleman and Liau, 1975 | 0.0588 x L - 0.296 x S - 15.8 |
automatedReadabilityIndex | Smith and Senter, 1967 | 4.71 x (characters / words) + 0.5 x (words / sentences) - 21.43 |
Five of the six are expressed as a U.S. school grade. Flesch Reading Ease is a 0-100-ish scale where higher means easier; it is unbounded, so very short simple sentences can score above 100 and very dense ones below zero.
averageGradeLevel is the mean of the five grade formulas, which is steadier than any one
of them on short text.
.package(url: "https://github.com/theluckystrike/ReadabilityScoreKit.git", from: "1.0.0")
.target(name: "YourTarget", dependencies: ["ReadabilityScoreKit"])
Every formula reads from one TextStatistics value, so two scores for the same text always
agree about how many words it contains. You can inspect or supply the counts yourself:
let stats = Readability.statistics(for: text)
stats.wordCount
stats.sentenceCount
stats.syllableCount
stats.polysyllableCount // three or more syllables
let scores = ReadabilityScores(statistics: stats)
-- is not counted.., ! or ?. Wait!!! is one break, not three. Text with no
terminal punctuation is treated as a single sentence so headlines still score.Readability.score returns nil for text with no words, rather than zero, so
"unmeasurable" stays distinguishable from "scored zero".
The syllable count is a heuristic, not a dictionary lookup. It counts maximal vowel runs,
drops a silent trailing e, and adds one back for a consonant + le ending, with plurals
normalised so circles scores the same as circle. That gets ordinary English words right
most of the time, and gets some of them wrong: names, loanwords, and words where a vowel pair
spans a syllable boundary such as cre-ate. Flesch, Flesch-Kincaid, Gunning Fog and SMOG all
inherit that error. Coleman-Liau and ARI are character-based and do not.
Gunning's original definition of a "complex word" also excluded proper nouns, familiar jargon,
compounds, and words made polysyllabic only by an -es or -ed suffix. This implementation
applies none of those exclusions, so gunningFog reads a little high on text full of names.
Markdown, HTML tags and code are not stripped. Strip them before scoring or they are counted as words.
Treat every score as a band, not a measurement.
Pure Swift with no dependencies and no Foundation requirement in the scoring path. Builds anywhere a Swift 5.9 toolchain runs.
swift test
The formula tests use fixed counts so each constant is checked against the published formula by hand, rather than against this package's own tokenizer. The tokenizer and syllable counter are tested separately.
The same six formulas, implemented as hosted web tools:
Useful for sanity-checking this library's output against an independent implementation.
MIT. See LICENSE.