-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
37 lines (32 loc) · 713 Bytes
/
types.ts
File metadata and controls
37 lines (32 loc) · 713 Bytes
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
export enum HumanizationLevel {
Light = 'Light',
Medium = 'Medium',
Heavy = 'Heavy',
}
export enum WritingMode {
General = 'General',
Professional = 'Professional',
}
export enum LengthMode {
Shorten = 'Shorten',
Original = 'Original',
Expansion = 'Expansion',
}
export enum EmotionIntensity {
Neutral = 'Neutral',
SlightlyEmotional = 'Moody',
Passionate = 'Passionate',
}
export interface AnalysisResult {
aiScore: number; // 0-100
readabilityScore: number; // 0-100
wordCount: number;
sentenceCount: number;
suggestions: string[];
flaggedPhrases: { phrase: string; reason: string }[];
}
export interface TextStats {
chars: number;
words: number;
sentences: number;
}