You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56-13Lines changed: 56 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# ✦ ClearVoice — AI Professional Writing Wizard
1
+
# ✦ ClearVoice — AI Professional Writing Coach
2
2
3
-
**A zero-backend AI writing coach** that rewrites your professional content across three styles, provides tone heatmaps, and explains every change with coaching insights.
3
+
**A zero-backend AI writing coach** that rewrites your professional content across three styles, surfaces tone issues with a live heatmap, and coaches you with actionable before/after insights — all running directly in the browser.
-**Style Matrix** — Configure Persona, Audience, Goal, Content Type, and a Succinct ↔ Narrative vibe slider before every analysis
16
-
-**Three Variations** — The Negotiator (empathetic), The Visionary (bold), The Minimalist (direct)
17
-
-**Tone Heatmap** — Colour-coded overlay on your original text flagging aggressive, passive, waffle, jargon, vague, and strong phrases with hover tooltips
18
-
-**Coaching Panel** — Animated score rings (Clarity, Confidence, Professionalism, Impact) plus before/after insight cards explaining every change
19
-
-**Dual Provider** — Works with both Claude (Anthropic) and GPT-4 (OpenAI)
20
-
-**Resizable Panes** — Drag the centre divider to adjust the editor/output split; double-click to reset to 50/50
21
-
-**Light / Dark Mode** — Light theme by default with a toggle; preference saved locally
22
-
-**Accept / Copy / Export** — Accept a variation back into the editor, copy to clipboard, or export a full text report
17
+
-**Three Variations** — The Negotiator (persuasive & empathetic), The Visionary (bold & inspiring), The Minimalist (direct & efficient)
18
+
-**Tone Heatmap** — Colour-coded overlay on your original draft flagging aggressive, too-passive, waffle/hedge, jargon, vague, and strong phrases with hover tooltips. Enabled automatically after every analysis
19
+
-**Coaching Insights** — Animated score rings (Clarity, Confidence, Professionalism, Impact) plus before/after insight cards. Accept a suggestion to apply it directly into your draft, or dismiss it with one click
20
+
21
+
### Privacy & Safety
22
+
-**PII Redaction** — Optional "Redact PII before sending" checkbox powered by a custom Semantic Privacy Guard engine. Strips emails, phone numbers, SSNs, credit cards, IBANs, IP addresses, passport numbers, medical record IDs, and more before the text leaves the browser
23
+
24
+
### Layout & UX
25
+
-**Split Workspace** — Input (Your Draft) pane stacked above the output area. Drag the horizontal divider to adjust the top/bottom split; double-click to reset to 50/50
26
+
-**Side-by-Side Output** — Enhanced Writing and Coaching Insights panes sit horizontally within the output area. Drag the vertical divider to adjust their relative widths; double-click to reset
27
+
-**Collapsible Coaching Panel** — Click ◀ in the Coaching Insights header to collapse it and give more room to the Enhanced Writing pane; click ▶ to expand again
28
+
-**Mobile Responsive** — On tablets the output area stacks vertically; on phones the layout fully reorganises with horizontally-scrollable controls, compact touch targets, and collapsible panels
29
+
-**Scrollbars** — Styled 8px scrollbars with rounded thumbs throughout; Firefox `scrollbar-width: thin` support
30
+
-**Light / Dark Mode** — Light theme by default with a one-click toggle; preference persists in `localStorage`
31
+
32
+
### Provider & Key Management
33
+
-**Dual Provider** — Works with Claude (Anthropic) and GPT-4 (OpenAI); select inside ⚙ Settings
34
+
-**Shared Key Gating** — When deployed with a GitHub Actions-injected key, a non-invasive usage counter (✦ N/50 uses) appears in the header. After 50 runs on the shared key, users are prompted to bring their own key. Counter turns amber as the limit approaches
35
+
-**Accept / Copy / Export** — Accept a variation back into the editor, copy to clipboard, or export a full coaching report as a text file
36
+
37
+
### Tests
38
+
A browser-based unit test suite lives in `tests/`. Open `tests/index.html` in any browser to run all tests — no build step required.
23
39
24
40
---
25
41
@@ -31,7 +47,7 @@ cd Professional-Writing-Wizard
31
47
```
32
48
33
49
Open `index.html` in your browser — or push to GitHub and enable Pages (see below).
34
-
When the app loads, click **⚙ Settings** to enter your API key.
50
+
When the app loads, click **⚙ Settings** to enter your API key. It is stored only in `localStorage`.
35
51
36
52
---
37
53
@@ -42,7 +58,7 @@ When the app loads, click **⚙ Settings** to enter your API key.
42
58
1. Go to your repo → **Settings → Pages**
43
59
2. Source: **Deploy from a branch** → `main` → `/ (root)` → **Save**
│ └── scripts/inject_config.py # Safely injects API key into config.js at build time
121
+
└── README.md
122
+
```
123
+
124
+
---
125
+
84
126
## Architecture
85
127
86
128
See **[architecture.html](https://sushegaad.github.io/Professional-Writing-Wizard/architecture.html)** for a visual deep-dive including:
@@ -89,7 +131,7 @@ See **[architecture.html](https://sushegaad.github.io/Professional-Writing-Wizar
89
131
- File responsibility breakdown
90
132
- End-to-end data flow (6 annotated steps)
91
133
- JS module API reference
92
-
- GitHub Actions CI/CD pipeline visualization
134
+
- GitHub Actions CI/CD pipeline visualisation
93
135
- Security model and API key handling
94
136
95
137
---
@@ -98,6 +140,7 @@ See **[architecture.html](https://sushegaad.github.io/Professional-Writing-Wizar
98
140
99
141
-**Manual mode**: Your API key lives only in `localStorage`. It is sent only to your chosen AI provider — never to any third party.
100
142
-**GitHub Actions mode**: The key is injected into the deployed JS artifact. It is not in Git history but is readable in page source. Suitable for personal use only.
143
+
-**PII redaction**: When the redaction checkbox is enabled, sensitive entities are replaced with `[REDACTED_TYPE]` tokens client-side before the API call. The original text is restored locally after the response.
101
144
-**No telemetry**: No backend, no tracking, no analytics.
102
145
-**Production recommendation**: For shared/team deployments, front the API with a server-side proxy (Cloudflare Workers, Netlify Functions, Vercel Edge, etc.).
103
146
@@ -108,4 +151,4 @@ See **[architecture.html](https://sushegaad.github.io/Professional-Writing-Wizar
108
151
MIT — free to use, modify, and deploy.
109
152
110
153
---
111
-
**Built by Hemant Naik · Powered by Claude Sonnet 4.5**
154
+
**Built by Hemant Naik · Powered by Claude Sonnet 4.5**
0 commit comments