Skip to content
Back to skills

Text Augmentation

ASecurity

"Augment Chinese text with translation, swaps, homophones, random

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

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Text Augmentation?

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

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

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: text-augmentation
description: "Augment Chinese text with translation, swaps, homophones, random
  edits, or entity replacement."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# Text augmentation

Use this sub-skill when the task is about generating plausible alternate training examples rather than parsing or cleaning text.

## Include here
- `BackTranslation` and the translation API wrappers: `BaiduApi`, `YoudaoFreeApi`, `YoudaoApi`, `GoogleApi`, `TencentApi`, `XunfeiApi`
- `SwapCharPosition`
- `HomophoneSubstitution`
- `RandomAddDelete`
- `ReplaceEntity`

## Exclude or route elsewhere
- Raw cleanup or extraction → `text-cleaning-and-extraction`
- Semantic parsing or normalization → `parsing-and-normalization`
- Tag conversion or dataset batching → `annotation-and-dataset-tools`
- Dictionary loaders and higher-level analytics → `dictionaries-and-language-analysis`

## What to read
- `references/api-reference.md` for constructor signatures and expected input shape.
- `references/troubleshooting.md` for network, credential, and offset issues.
- `scripts/smoke_augmentation.py` for a safe local-only smoke run.

## Typical flow
1. Decide whether the augmentation is local and deterministic or network-backed.
2. For local augmenters, fix the seed before generating a small batch.
3. For entity replacement, keep offsets and entity ordering consistent.
4. For back translation, prepare real translation API credentials before running.

## Quick cues
- Ask for this sub-skill when the user says "augment this text", "make more training examples", "swap nearby characters", "replace entities", or "back translate".
- Keep `BackTranslation` separate from the local augmenters when keys or network access are not available.

Files in this skill

  • SKILL.md1.8 KB
  • references/api-reference.md1.3 KB
  • references/troubleshooting.md1.1 KB
  • scripts/smoke_augmentation.py1.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.