User Rating 0.0 β˜…β˜…β˜…β˜…β˜…
Total Usage 0 times
Your result will appear here...
Quick Presets:
Is this tool helpful?

Your feedback helps us improve.

β˜… β˜… β˜… β˜… β˜…

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.

consonant replacer text tool letter replacement consonant filter text formatter vowel isolator

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.

outputi =
{
R if lower(ci) ∈ Cci otherwise

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:

ratio = count(ci ∈ C)n Γ— 100%

Time complexity: O(n). Space complexity: O(n) for the output string. Set lookup is O(1) amortized via hash set.

Reference Data

LetterTypeIPA ExampleFrequency in English (%)Notes
bConsonant/b/ - bat1.49Voiced bilabial plosive
cConsonant/k/ or /s/2.78Hard before a, o, u; soft before e, i
dConsonant/d/ - dog4.25Voiced alveolar plosive
fConsonant/f/ - fish2.23Voiceless labiodental fricative
gConsonant/Ι‘/ or /dΚ’/2.02Hard or soft depending on context
hConsonant/h/ - hat6.09Voiceless glottal fricative; silent in some words
jConsonant/dΚ’/ - jam0.15Voiced postalveolar affricate
kConsonant/k/ - kite0.77Silent before n (e.g., "knee")
lConsonant/l/ - lamp4.03Lateral approximant
mConsonant/m/ - map2.41Bilabial nasal
nConsonant/n/ - net6.75Alveolar nasal
pConsonant/p/ - pen1.93Voiceless bilabial plosive
qConsonant/k/ - queen0.10Almost always followed by u
rConsonant/ΙΉ/ - red5.99Alveolar approximant (rhotic)
sConsonant/s/ or /z/6.33Most common consonant letter
tConsonant/t/ - top9.06Most frequent consonant in English
vConsonant/v/ - van0.98Voiced labiodental fricative
wConsonant/w/ - win2.36Labial-velar approximant
xConsonant/ks/ - fox0.15Typically represents cluster /ks/
yAmbiguous/j/ or /iː/1.97Consonant at syllable onset; vowel elsewhere
zConsonant/z/ - zoo0.07Least frequent consonant
aVowel/Γ¦/ - cat8.17Open front unrounded
eVowel/Ι›/ - bed12.70Most frequent letter overall
iVowel/Ιͺ/ - sit6.97Close front unrounded
oVowel/Ι’/ - hot7.51Open back rounded
uVowel/ʌ/ - cup2.76Open-mid back unrounded

Frequently Asked Questions

In English phonology, y functions as a consonant when it appears at the beginning of a syllable (e.g., "yes", "beyond") and as a vowel when it appears in the nucleus (e.g., "gym", "myth"). This tool provides a toggle to include or exclude y from the consonant set. For most corpus linguistics work, treating y as a consonant is the default convention. For phonological vowel skeleton analysis, exclude it.
The current implementation targets the 26-letter English alphabet. Characters with diacritics (e.g., ñ, ç, ß) and letters from other scripts (Cyrillic, Greek, Arabic) are passed through unchanged. If your text contains such characters, they will remain in the output unmodified. Extend the consonant set manually by editing the replacement character mapping for multilingual support.
When case preservation is enabled, the tool checks whether the original consonant was uppercase. If so, the replacement character is converted to uppercase before insertion. For example, replacing consonants with * in "Hello" yields "*e**o" without case preservation, but since * has no case, the output is identical. Case preservation matters when the replacement character is itself a letter - replacing with x would yield "Xexxo" with preservation on, versus "xexxo" with it off.
Setting the replacement to an empty string effectively strips all consonants from the text, leaving only vowels, digits, punctuation, and whitespace. This produces a vowel skeleton useful for phonological pattern analysis. For instance, "structure" becomes "uuue" - exposing the underlying vowel pattern.
Yes. The tool accepts multi-character replacement strings. Each consonant will be replaced by the full string. For example, replacing with "[*]" transforms "cat" into "[*]a[*]". Be aware this changes the output length: if your input has k consonants and the replacement string has length m, the output length becomes n βˆ’ k + k Γ— m.
In standard English prose, approximately 62% of alphabetic characters are consonants (based on letter frequency analysis of large corpora). The reference table shows individual letter frequencies from Lewand's cryptographic analysis of 40,000 words. The tool's statistics panel reports the actual consonant ratio of your specific input, which may deviate from the corpus average depending on vocabulary and style.