Cost Calculator to Build a House

SEO Content & Readability Analyzer

Paste your content below to analyze word count, estimated reading time, and keyword density for SEO optimization.

Word Count 0
Reading Time 0m
SEO Score 0%
Top Keywords:
{ "@context": "https://schema.org", "@type": "WebApplication", "name": "SEO Content Analyzer", "operatingSystem": "All", "applicationCategory": "SEO Tool", "offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" } } function analyzeSEOContent() { var text = document.getElementById('seoContentInput').value.trim(); if (!text) { alert('Please enter some text to analyze.'); return; } var words = text.toLowerCase().match(/\w+/g) || []; var wordCount = words.length; var readTime = Math.ceil(wordCount / 200); var wordFreq = {}; for (var i = 0; i 3) { wordFreq[word] = (wordFreq[word] || 0) + 1; } } var sortedKeywords = []; for (var key in wordFreq) { sortedKeywords.push([key, wordFreq[key]]); } sortedKeywords.sort(function(a, b) { return b[1] – a[1]; }); var score = 0; if (wordCount > 300) score += 30; if (wordCount > 600) score += 30; if (wordCount > 1000) score += 20; if (sortedKeywords.length > 5) score += 20; document.getElementById('resWordCount').innerText = wordCount; document.getElementById('resReadTime').innerText = readTime + 'm'; document.getElementById('resSEOScore').innerText = score + '%'; var scoreColor = '#d63638'; if (score > 40) scoreColor = '#dba617'; if (score > 70) scoreColor = '#00a32a'; document.getElementById('resSEOScore').style.color = scoreColor; var kwContainer = document.getElementById('topKeywordsContainer'); kwContainer.innerHTML = "; var topFive = sortedKeywords.slice(0, 5); for (var j = 0; j < topFive.length; j++) { var span = document.createElement('span'); span.style.cssText = 'background:#e2e4e7; padding:4px 10px; border-radius:15px; font-size:12px; font-weight:500;'; span.innerText = topFive[j][0] + ' (' + topFive[j][1] + ')'; kwContainer.appendChild(span); } document.getElementById('seoResults').style.display = 'block'; } function clearSEOContent() { document.getElementById('seoContentInput').value = ''; document.getElementById('seoResults').style.display = 'none'; }

Leave a Comment