ytu-ce-cosmos/guardrail-tr
Guardrail-TR Guardrail-TR (ytu-ce-cosmos/guardrail-tr) is a large-scale Turkish prompt-safety dataset for training and evaluating content-moderation / guardrail classifiers. Dataset contains ~405K single-turn user prompts with: a binary safe / unsafe label, and multi-label hazard categories (a prompt may carry more than one category). All released prompt text is Turkish. Rows that originated from English sources were processed, translated and, where relevant, culturally… See the full description on the dataset page: https://huggingface.co/datasets/ytu-ce-cosmos/guardrail-tr.
Guardrail-TR
Guardrail-TR (ytu-ce-cosmos/guardrail-tr) is a large-scale Turkish prompt-safety dataset for training and evaluating content-moderation / guardrail classifiers.
Dataset contains ~405K single-turn user prompts with:
- a binary safe / unsafe label, and
- multi-label hazard categories (a prompt may carry more than one category).
All released prompt text is Turkish. Rows that originated from English sources were processed, translated and, where relevant, culturally adapted before inclusion.
Dataset at a glance
Dataset structure
Hazard taxonomy
The taxonomy is inspired by the MLCommons hazards taxonomy, adapted for this release.
Benign prompts are labeled safety = "safe" (including hard negatives that look risky but are not harmful).
Label counts
Individual tag appearances (multi-label rows contribute to more than one category; SAFE is counted separately):
Source datasets
Turkish sources
Turkish sources were deduplicated and passed through heuristic quality filters.
English sources
From chat-style English corpora, only single-turn prompts were used. Undersampled / rare classes were additionally sampled from moderation-flagged rows in LMSYS and WildChat.
Curation pipeline
English-origin and Turkish-origin streams were processed separately, then merged.
Turkish stream
- Deduplication
- Heuristic quality filtering
English stream
- Preprocessing, filtering, and deduplication (MinHash)
- Unredacting (~28K rows): redacted spans in English sources were filled from a pool of Turkish given names, place names, and related entities (English-origin rows only)
- Resampling underrepresented classes from LMSYS / WildChat (single-turn, moderation-flagged)
- Translation with `google/translategemma-27b-it`
- Cultural adaptation (~26K rows) with `google/gemma-4-31B-it`, in a CultureGuard-style process: detect culturally grounded content, then adapt it
Merge, labeling, and synthesis
- Merge streams → ~401K rows
- LLM-as-judge labeling (multi-label, 10 categories) with a three-model jury:
- `google/gemma-4-26B-A4B-it`
- `Qwen/Qwen3.6-35B-A3B`
- `openai/gpt-oss-120b`
- Label acceptance if either:
- at least 2 of 3 judges agree on the label, or
- at least 1 judge agrees with the original source label
- Synthetic augmentation (~4K rows) for underrepresented classes, generated with `google/gemma-4-31B-it`
- Final dataset → ~405K rows, split 80 / 10 / 10 (train / validation / test)
Intended use
- Training and evaluating Turkish prompt safety / guardrail classifiers
- Research on multi-label hazard taxonomies, over-refusal (hard negatives), injection/jailbreak detection, and related moderation topics
Out-of-scope use
- Training dialogue agents to produce harmful content
- Treating labels as legal, clinical, or policy judgments without human review
- Assuming coverage of assistant responses as this release is prompt-oriented
Bias, risks, and limitations
- Harmful content: The dataset contains offensive, violent, sexual, self-harm-related, and otherwise distressing text. Engage only according to your own risk tolerance and institutional guidelines.
- Synthetic and translated text: Large portions are machine-translated and/or culturally adapted; judge labels are model-based. Residual translation artifacts, cultural mismatches, and judge errors are possible.
- Taxonomy & policy dependence: Category boundaries are design choices. Other policies may disagree on borderline cases (especially harassment vs. hate, or political misinformation).
- Class imbalance: SAFE and a few unsafe categories dominate; rarer tags (e.g. CSAE, MISINFORMATION_POLITICAL) remain smaller even after synthetic augmentation.
- Source bias: Upstream English and Turkish corpora reflect their collection channels (social media, chat logs, red-teaming sets) and may under- or over-represent certain dialects, demographics, or harm types.
The views expressed in the prompts do not reflect the views of YTU CE COSMOS or the dataset curators.
License
apache-2.0
