americanize

Replace British spellings with American equivalents in text files.

2|Updated Nov 16, 2024
One-click install
npx skills add https://github.com/onairmarc/dotfiles --skill americanize
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: americanize
Source: https://github.com/onairmarc/dotfiles/tree/main/.agents/skills/americanize
Command: npx skills add https://github.com/onairmarc/dotfiles --skill americanize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

British spellings slow readers, reduce consistency, and complicate editorial workflows. This skill scans text files and rewrites common British variants with American equivalents in-place, ensuring uniform spelling across a project.

Core Features & Use Cases

  • In-place British-to-American spelling normalization across files or directories.
  • Case-preserving substitutions with a seed table to avoid breaking identifiers or URLs.
  • Configurable and safe: skips binary files and sensitive paths, with a focus on text content.

Quick Start

Provide a path to a file or directory and let the tool replace British spellings with American equivalents in-place.

Frequently Asked Questions about americanize

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

FAQPage Schema
How do I convert British spellings to American in a text file?▼

The tool scans provided text files and replaces common British spellings with American equivalents in-place. It uses a substitution table to normalize spelling across directories or single files while preserving case.

Can I normalize British to American spelling across an entire codebase?▼

Yes, you can normalize British to American spelling across an entire codebase by providing a directory path. The tool processes text files recursively and skips binary files and sensitive paths to ensure safe in-place edits.

Does in-place British to American text editing preserve case and identifiers?▼

Yes, in-place British to American text editing preserves case and avoids breaking identifiers or URLs. It applies case-preserving substitutions using a seed table to maintain codebase and documentation integrity.

What happens to binary files during British to American spelling normalization?▼

During British to American spelling normalization, binary files are automatically skipped. The tool includes safeguards to skip unrelated paths and binary content, focusing solely on modifying text-heavy projects and documentation.

Why does my documentation still have British spellings after a text edit?▼

If documentation retains British spellings after a text edit, the specific variant may not exist in the tool's substitution table. The tool relies on a seed table of common British-to-American mappings to perform in-place replacements.