Advanced Spell Checker - Free Online Tool | EzyToolz.com
Spell Checker
Refine your text with intelligent spelling and grammar correction.
Correction Results
Suggestions
All Clear!
No spelling or grammar issues found in your text.
Processing Document
Extracting text, please wait...
`);
printWindow.document.close();
printWindow.focus();
setTimeout(() => { printWindow.print(); printWindow.close(); }, 250);
}function downloadResults() {
if (!currentText) {
showToast({ title: 'Nothing to Download', content: 'No text to download.', type: 'warning' }); return; // Download Cheyyadaniki Emi Ledu, Download cheyyadaniki e text ledu.
}
const filename = `checked-text-${new Date().toISOString().slice(0,10)}.txt`;
const blob = new Blob([currentText], { type: 'text/plain;charset=utf-8' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(url);
showToast({ title: 'Download Started', content: `Saved as ${filename}`, type: 'success' }); // Download Modalayyindi, ${filename} ga save cheyyabadindi
}function showToast({ title, content, type = 'info', duration = 4000 }) {
const toast = document.createElement('div');
toast.className = `toast toast-${type}`;
let iconName = 'info';
if (type === 'success') iconName = 'check-circle';
else if (type === 'error') iconName = 'alert-circle';
else if (type === 'warning') iconName = 'alert-triangle';toast.innerHTML = `
`;
toastContainer.appendChild(toast);
lucide.createIcons();
setTimeout(() => toast.classList.add('show'), 10);
const closeBtn = toast.querySelector('button');
const removeToast = () => {
toast.classList.remove('show');
setTimeout(() => toast.remove(), 300);
};
closeBtn.addEventListener('click', removeToast);
setTimeout(removeToast, duration);
}
function escapeRegExp(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}// FAQ Dropdown toggle icon - FAQ Dropdown toggle icon
document.querySelectorAll('.faq-item details').forEach(detail => {
detail.addEventListener('toggle', function() {
const icon = this.querySelector('.faq-icon');
if (this.open) {
icon.setAttribute('data-lucide', 'minus-circle');
} else {
icon.setAttribute('data-lucide', 'plus-circle');
}
lucide.createIcons(); // Re-render icons - Icons nu malli render cheyyandi
});
});// Initial setup - Prarambha setup
populateLanguageDropdown();
changeLanguage(currentLanguage);
updateCharCountAndDragArea();
if (typeof pdfjsLib !== 'undefined') {
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdn.jsdelivr.net/npm/pdfjs-dist@3.4.120/build/pdf.worker.min.js';
} else {
console.warn("pdfjsLib is not defined. PDF processing might not work."); // pdfjsLib define cheyyaledu. PDF processing pani cheyyakapovachchu.
}