typo-injector

Inject spelling errors into text at configurable rates for NLP testing.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/aviferdman/LLMs-and-Multi-Agent-Orchestration---Assignment3 --skill typo-injector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typo-injector
Source: https://github.com/aviferdman/LLMs-and-Multi-Agent-Orchestration---Assignment3/tree/main/.claude/skills/typo-injector
Command: npx skills add https://github.com/aviferdman/LLMs-and-Multi-Agent-Orchestration---Assignment3 --skill typo-injector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually creating text with specific typo rates for testing NLP models or translation pipelines is tedious and prone to inconsistency. This Skill automates the precise injection of spelling errors, ensuring reliable and reproducible test data.

Core Features & Use Cases

  • Controlled Typo Rates: Introduce typos at a specified percentage of words, ensuring consistent test data for experiments.
  • Diverse Error Types: Applies substitution, deletion, duplication, and swapping errors for realistic text corruption.
  • Mandatory Verification: Guarantees the actual typo count matches the target, ensuring reliable experiment setup without manual checks.
  • Use Case: Evaluate how well a translation agent handles corrupted input by systematically testing it with varying levels of spelling errors, or stress-test a spell-checker's performance.

Quick Start

Use the typo-injector skill to add 30% typos to the sentence: "The quick brown fox jumps over the lazy dog."

Frequently Asked Questions about typo-injector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I inject typos into text for testing NLP systems?

Typo injection introduces spelling errors at a specified percentage of words to simulate realistic corruption. It applies substitution, deletion, duplication, and swapping errors, enabling controlled testing of NLP robustness without manual text creation.

Can I control the exact rate of typos when corrupting text?

Yes, you specify a target typo percentage, and the Skill calculates word-based error injection with rounding, guaranteeing the actual typo count matches your target through mandatory verification.

What's the best way to stress-test a spell-checker or translation pipeline?

Systematically introduce varying levels of spelling errors using configurable typo rates across test sentences. This generates reproducible corrupted datasets for evaluating how systems handle degraded input at different error thresholds.

Does typo injection work for data augmentation in machine learning experiments?

Yes, it automates generation of diverse, corrupted text variants at controlled error rates, producing reliable test data for robustness evaluation and augmenting training datasets without manual inconsistency.

What types of spelling errors does the Skill apply?

Typo injection applies substitution, deletion, duplication, and swapping errors to alphabetic characters, ensuring realistic text corruption while excluding non-alphabetic content from modification.