
AWS Comprehend is a cloud NLP API with PII detection. This page is about the redaction workflow, not a full feature audit. Vendor plans and terms change; verify the current facts before you buy.
Part of aws and azure redaction. For the adjacent case, read aws comprehend vs veilbrook and azure ai language vs veilbrook.
What it does well
Comprehend can detect entities and PII in text at scale. It fits a developer who is already on AWS and wants a managed detection call inside an application.
Where it stops for a redaction workflow
It returns detection results, not a redacted document with a review surface. Layout, attachments, scans and the evidence trail are yours to build. The data leaves for the AWS region you choose.
Side by side
| AWS Comprehend | Veilbrook | |
|---|---|---|
| Main job | a cloud NLP API with PII detection | Document redaction workflow with a policy, a report and a second pass. |
| Formats | Text; documents require extraction first. | PDF, Word, email, text and scans, with OCR caveats. |
| Detection | Managed model. | Model plus format rules; uncertain spans go to review. |
| Review | Your application. | A review surface and a second pass on the output. |
| Evidence | Your logs and report. | A removal report with the masked output. |
| Deployment | AWS cloud API. | Cloud or on-premise, same model. |
When it is enough
A text pipeline on AWS with engineering capacity to build the workflow.
When it is not
A team that needs a finished redaction file and a review step.
How to test it
- Take your hardest real document: a scan, a long PDF or an email with an attachment.
- Mask a value in the tool and export the file.
- Reopen it, select the masked area and paste it into a text editor.
- Search for the value and inspect the metadata and attachments.
- Time the review and ask who repeats it.
Limits
It returns detection results, not a redacted document with a review surface. Layout, attachments, scans and the evidence trail are yours to build. The data leaves for the AWS region you choose. No tool catches everything, and a masked document is not automatically anonymous. The legal basis and the recipient's rules remain your decision. Keep the test file and the output; a comparison without evidence is a preference.
What to ask
- Which region processes the text?
- What is retained?
- How do you handle PDFs and scans?
- Who reviews the uncertain spans?
- What does the output report contain?
What Comprehend is
AWS Comprehend is a natural-language API with a PII detection operation: send text, receive entity spans with confidence scores. It is fast, scales without ceremony, and bills per unit of text — for pipelines that already live on AWS, it is the path of least resistance. What it is not: a document tool. PDFs arrive as extracted text, the output is a list of offsets, and everything that turns offsets into a redacted document — layout, layers, verification, reports — is engineering the buyer owns.
Where the build effort lands
Three pieces absorb the effort. Extraction: pulling text from PDFs while preserving enough layout to re-apply masks — the hard part of the whole job. Verification: re-extracting and proving the values are gone, because an offset applied to the wrong span is a silent leak. Evidence: the report that says what was found and removed, generated per file and kept per release. Comprehend does the detection honestly; the document workflow around it is a product you build or buy.
The price model, understood
Per-unit pricing rewards pipelines and punishes exploration: a thousand test documents cost real money, so build the evaluation set once and reuse it. Watch the dimensions that move the bill — document size, feature set, volume tiers — and set a budget alert before the first load test. The bill itself is honest; the surprise is a planning failure, and it is avoidable with an afternoon of arithmetic.
How Veilbrook fits
Veilbrook finds and masks personal data across documents, runs a second pass and returns a removal report. It can run in the cloud or on-premise. If the tool above already fits your document and your boundary, keep it; if you need a repeatable multi-format workflow, test Veilbrook on the same sample.
Checklist
- Match the tool to the document.
- Check the deployment boundary.
- Test the hard sample.
- Verify the layers.
- Keep the report.
Common mistakes
- Judging a redaction by the screenshot.
- Forgetting the attachment or the metadata.
- Assuming a cloud tool is local.
- Calling a mask anonymous.
- Buying before testing the hard file.