Multilingual Harmless and Harmful Prompts
What is this?
This dataset contains the Translations of the (1) heretic-org/Semantic-Harmless dataset and the (2) heretic-org/Semantic-Harmful dataset into 10 languages (including original English data).
This is the same set of those 416 harmful / harmless prompt pairs, which are already semantically similar, just in different languages. The original dataset is English only, so I translated it, in the hope that people can use this dataset for any research related to "Abliteration in a multilingual model. GitHub #65" or "How refusal behavior differs across different languages" or any similar topics.
[!NOTE]
I speak Hindi, Marathi, and somewhat Italian, so I actually checked the translations for a few of them. But I'm not going to pretend that I'm an expert linguist who can guarantee everything is "perfect". So far, it Looks good to me. The rest of the languages like Bengali, French, Russian, Tamil... I don't really understand any of them, so I can't say how good those translations are.If you find any wrong translations, PRs to fix them are much welcome.
Usage with Heretic
Each language in this dataset has its own config/subset, where each of these configs have two splits: harmless and harmful.
To support specifying a dataset's specific config/subset, it was implemented in feat: Support specifying a dataset's specific config/subset #445 for p-e-w/heretic.
Example config.toml file
For heretic >=v2.0.0 (plugin-based)
# Using first 5 prompts for abliteration.
[modifier.ARA.good_prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmless[:5]"
column = "text"
[modifier.ARA.bad_prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmful[:5]"
column = "text"
# Using first 6-10 prompts for evaluation.
[scorer.KLDivergence.prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmless[5:10]"
column = "text"
[scorer.KeywordRate.prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmful[5:10]"
column = "text"
For heretic `v1.4.0` and before
# Using first 5 prompts for abliteration.
[good_prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmless[:5]"
column = "text"
[bad_prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmful[:5]"
column = "text"
# Using first 6-10 prompts for evaluation.
[good_evaluation_prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmless[5:10]"
column = "text"
[bad_evaluation_prompts]
dataset = "heretic-org/Multilingual-Harmless-Harmful"
config = "hindi"
split = "harmful[5:10]"
column = "text"
[!TIP]
You can use thekeyword_markersfrom the translated multilingualconfig.multilingual.tomlfile.Looking for a specific language's
keyword_markersonly? Seecontent/<language_name>/text/<iso_code>_keywords.txtfile, one per line.
Languages
| No. | Language | Code |
|---|---|---|
| 1 | English (original) | en |
| 2 | Bengali | bn |
| 3 | French | fr |
| 4 | Hindi | hi |
| 5 | Italian | it |
| 6 | Japanese | ja |
| 7 | Korean | ko |
| 8 | Marathi | mr |
| 9 | Russian | ru |
| 10 | Tamil | ta |
Extra
For convenience, this dataset is also available in PLAINTEXT (.txt), CSV (.csv), and JSON (.json) formats inside the content/ folder.
1. Structure:
content/
└── hindi/
├── text/
│ ├── hindi_harmful.txt
│ ├── hindi_harmless.txt
│ └── hi_keywords.txt
├── json/
│ └── hindi.json
└── csv/
└── hindi.csv
2. Format:
One line = One prompt in each of the .txt files. Columns: text (the translation), english (the original). Each language has two splits: harmful and harmless.
The <iso_code>_keywords.txt file contains the 33 translated keyword markers of the language. The config.multilingual.toml is generated / updated from those files.
Sources
All translations are based on the heretic-org/Semantic-Harmless and heretic-org/Semantic-Harmful datasets. For more details, see the README.md file of one of these datasets.
Contributing
You know a language that's not here?
I'd love to add it. You can open a Pull Request for contributing more languages. See CONTRIBUTING.md for the details.
Development
Everything that is generated is generated by two scripts, and nothing else should be edited manually (unless required for some reason) since everything is automated by the scripts as long as the expected files are provided.
| Script | What it does |
|---|---|
scripts/convert.py |
Reads the source files and generates the JSON and the CSV mirrors in the content/ folder, updates the config.multilingual.toml file, the YAML frontmatter language list, and the language count and the language index table of README.md. |
scripts/upload_to_hub.py |
Opens a pull request with four commits: the parquet files, the content folder, the README, and the keyword markers. The datasets library rewrites the dataset_info and the configs of the frontmatter. |
Code quality is checked with ruff and ty:
ruff format scripts/
ruff check scripts/
ty check scripts/
Text files are stored with LF line endings, see .gitattributes.
License
Copyright © 2026 Vinay Umrethe.
This dataset is available under the Creative Commons Attribution Share Alike 4.0 International license.
By contributing to this dataset, you agree to release your contributions under the same license (CC-BY-SA-4.0).
The scripts inside the scripts/ folder are available under the GNU Affero General Public License v3.0 or later license.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.