Skip to content
Back to skills

Analyze Text

ASecurity

"Use Presidio Analyzer for text PII/PHI detection, custom

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
devopsazureapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill analyze-text --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze Text?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze Text
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-analyze-text/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-analyze-text)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyze-text
description: "Use Presidio Analyzer for text PII/PHI detection, custom
  recognizers, NLP engines, score thresholds, allow lists, and YAML-configured
  integrations."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# analyze-text

Use this sub-skill for free-text Presidio Analyzer work:

- single-text or batch PII/PHI detection
- custom pattern, deny-list, and remote recognizers
- supported entities, languages, country filters, and context words
- score thresholds, allow lists, and ad hoc recognizers
- NLP engine selection and model configuration
- optional GLiNER, LangExtract, Azure AI Language, and AHDS routing

## Route elsewhere

- Text anonymization and deanonymization → sibling anonymize-text skill
- DataFrame / JSON structured workflows → sibling structured-data skill
- Image OCR / bbox redaction → sibling image-redaction skill
- CLI file or directory scans → sibling cli-scans skill
- HTTP service startup or deployment → root service reference, not this sub-skill

## Primary surface

- `AnalyzerEngine`
- `BatchAnalyzerEngine`
- `RecognizerRegistry`
- `Pattern`
- `PatternRecognizer`
- `RecognizerResult`
- `AnalyzerEngineProvider`
- `NlpEngineProvider`
- `NoOpNlpEngine`

## Preferred workflow

1. Pick `AnalyzerEngine` for one text or `BatchAnalyzerEngine` for many values.
2. Load recognizers into a `RecognizerRegistry`.
3. Choose an NLP engine:
   - default spaCy path
   - `NoOpNlpEngine` for no-download, pattern-only flows
   - Stanza / Transformers / GLiNER / LangExtract / Azure AI Language / AHDS when configured
4. Call `analyze()` with entities, thresholds, context, allow lists, or ad hoc recognizers.

## Safe bundled checks

- `scripts/analyzer_smoke.py`
- `scripts/custom_recognizer_smoke.py`

## Reference notes

- `references/api-reference.md`
- `references/recognizers-and-nlp.md`
- `references/supported-entities-and-languages.md`
- `references/troubleshooting.md`

## Fast troubleshooting

- Missing default spaCy model: install the documented default model or use `NoOpNlpEngine` with custom recognizers.
- Unsupported language or unknown entity: confirm the registry, NLP engine, and entity name all match.
- Threshold or allow-list surprise: check request-level threshold precedence and exact vs regex allow-list matching.
- Regex timeout or flags: review `global_regex_flags`, request `regex_flags`, and `REGEX_TIMEOUT_SECONDS`.
- Optional extra missing: install only the extra needed for the configured recognizer or NLP engine.

Files in this skill

  • SKILL.md2.5 KB
  • references/api-reference.md5.1 KB
  • references/recognizers-and-nlp.md5.5 KB
  • references/supported-entities-and-languages.md3.7 KB
  • references/troubleshooting.md4.5 KB
  • scripts/analyzer_smoke.py3.6 KB
  • scripts/custom_recognizer_smoke.py3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.