TrendsGlide’s – Privacy-Focused Free Writing Assistant

TrendsGlide’s – Privacy-Focused Free Writing Assistant

Writing Statistics

Word Count 0
Character Count 0
Characters (no spaces) 0
Sentences 0
Paragraphs 0
Reading Time 0 min

Readability

0
Score
Flesch-Kincaid Reading Ease
Grade Level 0

Suggestions

Start writing to see suggestions…
'; return; } suggestions.forEach(suggestion => { const item = document.createElement('div'); item.className = 'suggestion-item'; item.innerHTML = ` ${suggestion.type}: ${suggestion.message} `; if (typeof suggestion.fix === 'string') { item.innerHTML += `
${suggestion.fix}
`; } suggestionsList.appendChild(item); }); } function updateWordGoalProgress(wordCount) { const goal = 1000; // Default goal const progress = Math.min(100, (wordCount / goal) * 100); document.getElementById('wordProgress').style.width = `${progress}%`; } function exportAsTxt() { const text = document.getElementById('editor').textContent; const blob = new Blob([text], { type: 'text/plain' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'document.txt'; a.click(); closePopup(); } function exportAsMd() { const html = document.getElementById('editor').innerHTML; // Simple HTML to Markdown conversion (would be more robust in production) let md = html .replace(/

]*>(.*?)<\/h1>/gi, '# $1\n\n') .replace(/

]*>(.*?)<\/h2>/gi, '## $1\n\n') .replace(/

]*>(.*?)<\/h3>/gi, '### $1\n\n') .replace(/]*>(.*?)<\/b>/gi, '**$1**') .replace(/]*>(.*?)<\/strong>/gi, '**$1**') .replace(/]*>(.*?)<\/i>/gi, '*$1*') .replace(/]*>(.*?)<\/em>/gi, '*$1*') .replace(/]*>(.*?)<\/u>/gi, '_$1_') .replace(/
]*>(.*?)<\/div>/gi, '$1\n') .replace(/

]*>(.*?)<\/p>/gi, '$1\n\n') .replace(/
]*>/gi, '\n') .replace(/<[^>]+>/g, ''); const blob = new Blob([md], { type: 'text/markdown' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'document.md'; a.click(); closePopup(); } function exportAsPdf() { // In a real app, you might use a library like jsPDF alert('PDF export would be implemented with a library like jsPDF in a production app.'); closePopup(); }

Scroll to Top