Here’s a complete Python script that checks spelling in bulk documents (like .txt, .docx, or .pdf files) within a specified directory. It uses pyspellchecker for spell-checking and python-docx / PyPDF2 for reading .docx and .pdf files.
Required Libraries Installation
Install the dependencies via pip before running:
Features:
-
Supports
.txt,.docx, and.pdf. -
Automatically extracts and checks words.
-
Suggests corrections for each misspelled word.
-
Displays a report file-wise.
Let me know if you want the output saved to a CSV or text file.
Share this Page your favorite way: Click any app below to share.