Consonant Replacer
Replace all consonants in your text with a custom character. Supports case preservation, multiple languages, and instant real-time preview.
About
Every alphabetic writing system partitions its characters into vowels and consonants. English uses 21 consonant letters out of 26 total - roughly 80.8% of the alphabet. Replacing consonants exposes the vowel skeleton of text, a technique used in phonological analysis, language learning drills, and creative cipher construction. Miscounting consonants or forgetting edge cases like y (which functions as both vowel and consonant depending on position) leads to flawed datasets in corpus linguistics work. This tool applies character-level replacement with O(n) complexity, preserves original letter casing when desired, and handles the full English consonant set: b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, z. The letter y is configurable - include or exclude it depending on your phonological framework.
Limitations: this tool operates on orthographic characters, not phonemes. The word "through" contains the consonant cluster thr orthographically but a single onset phoneme /ΞΈΙΉ/ phonetically. For IPA-level analysis, a dedicated phonemic parser is required. Pro tip: when using this for language learning, compare the vowel skeleton output against the original to train consonant recognition speed.
Formulas
The replacement algorithm iterates through each character ci in the input string S of length n. For each character, it checks membership in the consonant set C.
Where R = replacement character (user-defined), C = {b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, z} (optionally βͺ {y}), and n = len(S).
The consonant replacement ratio is computed as:
Time complexity: O(n). Space complexity: O(n) for the output string. Set lookup is O(1) amortized via hash set.
Reference Data
| Letter | Type | IPA Example | Frequency in English (%) | Notes |
|---|---|---|---|---|
| b | Consonant | /b/ - bat | 1.49 | Voiced bilabial plosive |
| c | Consonant | /k/ or /s/ | 2.78 | Hard before a, o, u; soft before e, i |
| d | Consonant | /d/ - dog | 4.25 | Voiced alveolar plosive |
| f | Consonant | /f/ - fish | 2.23 | Voiceless labiodental fricative |
| g | Consonant | /Ι‘/ or /dΚ/ | 2.02 | Hard or soft depending on context |
| h | Consonant | /h/ - hat | 6.09 | Voiceless glottal fricative; silent in some words |
| j | Consonant | /dΚ/ - jam | 0.15 | Voiced postalveolar affricate |
| k | Consonant | /k/ - kite | 0.77 | Silent before n (e.g., "knee") |
| l | Consonant | /l/ - lamp | 4.03 | Lateral approximant |
| m | Consonant | /m/ - map | 2.41 | Bilabial nasal |
| n | Consonant | /n/ - net | 6.75 | Alveolar nasal |
| p | Consonant | /p/ - pen | 1.93 | Voiceless bilabial plosive |
| q | Consonant | /k/ - queen | 0.10 | Almost always followed by u |
| r | Consonant | /ΙΉ/ - red | 5.99 | Alveolar approximant (rhotic) |
| s | Consonant | /s/ or /z/ | 6.33 | Most common consonant letter |
| t | Consonant | /t/ - top | 9.06 | Most frequent consonant in English |
| v | Consonant | /v/ - van | 0.98 | Voiced labiodental fricative |
| w | Consonant | /w/ - win | 2.36 | Labial-velar approximant |
| x | Consonant | /ks/ - fox | 0.15 | Typically represents cluster /ks/ |
| y | Ambiguous | /j/ or /iΛ/ | 1.97 | Consonant at syllable onset; vowel elsewhere |
| z | Consonant | /z/ - zoo | 0.07 | Least frequent consonant |
| a | Vowel | /Γ¦/ - cat | 8.17 | Open front unrounded |
| e | Vowel | /Ι/ - bed | 12.70 | Most frequent letter overall |
| i | Vowel | /Ιͺ/ - sit | 6.97 | Close front unrounded |
| o | Vowel | /Ι/ - hot | 7.51 | Open back rounded |
| u | Vowel | /Κ/ - cup | 2.76 | Open-mid back unrounded |