# Redact political opinions

> Redact political opinions and affiliations from free text, surveys, and HR records.

Canonical: https://bitbanger.in/entities/political
Last updated: 2026-10-27

Category: Special-category data · Entity type: `special.political`

Political opinion is special-category data under GDPR and is unusually easy to leak, because it appears in ordinary sentences rather than in a field called politics.

## How Redactly detects political opinions

- Detected by the model from free text.
- Covers expressed opinions, party affiliation, and activism.
- No assumption is made about jurisdiction, since the sensitivity applies broadly.

## Why redact political opinions?

Political views carry legal protection in most jurisdictions and real personal risk if disclosed.

## Example request

```bash
curl -X POST https://api.bitbanger.in/v1/redact \
  -H "X-API-Key: rdct_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{"text": "Volunteer noted he campaigns for the local green party.", "style": "replace"}'
```

## FAQ

**Does Redactly redact political opinions automatically?**

Yes. Send text to the API and every detected type is redacted, including political opinions. To redact only this type, pass the value special.political in the entities filter. No training or configuration is required.

**What happens to political opinions after redaction?**

With style set to replace, each match becomes [special.political] — the entity type in square brackets. Setting style to mask replaces every character with a block character, and remove deletes the span entirely.

## Related entity types

- [Religious beliefs](https://bitbanger.in/entities/religion) — Redact references to religious belief or affiliation from HR records, applications, and free text.
- [Sexual orientation](https://bitbanger.in/entities/orientation) — Redact references to sexual orientation from free text and HR records.
- [Health status](https://bitbanger.in/entities/health-status) — Redact statements about a person's health, disability, or medical status from free text.

Try it on your own text: https://bitbanger.in/entities/political
