My elementary school age child clearly has rhotacism (a speech impediment that is defined by the lack of ability, or difficulty in, pronouncing the sound R.). I have had recently a discussion with her trying to explain that we should start working on fixing this problem. But it was a bit difficult to illustrate that a letter ‘R’ was that important. And so we opened the Mathematica notebook and typed in the following code:
BarChart[
((StringCases[WordList[], ___ ~~ # ~~ ___] // Flatten //
Length)/(WordList[] // Length)*100 // N) & /@ Alphabet[],
ChartLabels -> ToUpperCase@Alphabet[], PlotTheme -> "Business"
]
I was even surprised to see that letter ‘R’ was found at least once in more than 50% of English words (well, those provided by WL). The kid was excited too! She asked me to show the same ‘proof’ for any other language. ‘R’ hit the 60% mark in Italian case. Excellent!
BarChart[
((StringCases[WordList[Language -> "Italian"], ___ ~~ # ~~ ___] //
Flatten // Length)/(WordList[Language -> "Italian"] //
Length)*100 // N) & /@ Alphabet[Language -> "Italian"],
ChartLabels -> ToUpperCase@Alphabet[Language -> "Italian"],
PlotTheme -> "Business"
]
That worked out very well and my kid wanted to learn more about Wolfram Language, and the letter ‘R’ ![]()






– you have earned Featured Contributor Badge