-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
41 lines (40 loc) · 946 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
interface ReadabilityConfig {
difficultWords?: boolean
capsAsNames?: boolean
onlySpache?: boolean
onlyDaleChall?: boolean
onlyARI?: boolean
onlyColemanLiau?: boolean
onlyFleschKincaid?: boolean
onlySMOG?: boolean
onlyGunningFog?: boolean
skipDaleChall?: boolean
skipARI?: boolean
skipColemanLiau?: boolean
skipFleschKincaid?: boolean
skipSMOG?: boolean
skipGunningFog?: boolean
}
declare function readabilityScores(
value: string,
config?: ReadabilityConfig
): {
letterCount: number
syllableCount: number
wordCount: number
sentenceCount: number
polysyllabicWordCount: number
polysyllabicWords?: string[]
spacheUniqueUnfamiliarWordCount?: number
spacheUniqueUnfamiliarWords?: string[]
spache?: number
daleChallDifficultWordCount?: number
daleChallDifficultWords?: string[]
daleChall?: number
ari?: number
colemanLiau?: number
fleschKincaid?: number
smog?: number
gunningFog?: number
}
export = readabilityScores