# Letter frequencies in WordList

**URL:** <https://community.wolfram.com/t/letter-frequencies-in-wordlist/9059>\
**Category:** Questions\
**Tags:** graphics-and-visualization, wolfram-cloud, computational-linguistics\
**Created:** [August 15, 2016, 8:37pm UTC](https://community.wolfram.com/t/letter-frequencies-in-wordlist/9059 "2016-08-15T20:37:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackreeceejini](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jackreeceejini/32/20726_2.png) [@jackreeceejini](https://community.wolfram.com/u/jackreeceejini)\
**Post date:** [August 15, 2016, 8:37pm UTC](https://community.wolfram.com/t/letter-frequencies-in-wordlist/9059/1 "2016-08-15T20:37:55Z")

</div>

Can’t run it on the Wolfram cloud. It’s beyond my pay grade:

```
BarChart[Characters[StringJoin[WordList[]]]]

```

---

<div class="post-metadata">

**Author:** ![mthiel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/mthiel/32/42877_2.png) [@mthiel](https://community.wolfram.com/u/mthiel)\
**Post date:** [August 15, 2016, 9:20pm UTC](https://community.wolfram.com/t/letter-frequencies-in-wordlist/9059/2 "2016-08-15T21:20:20Z")

</div>

Hi,

you are actually quite close. The first thing is that you don’t actually need to join the strings. I made the labelling a bit nicer.

```
BarChart[#[[All, 2]], ChartLabels -> #[[All, 1]]] &@Reverse@SortBy[Tally[Flatten[Characters /@ ToLowerCase[WordList[]]]], Last]

```

 ![ScreenShot2016-08-15at22.16.45.png](https://global.discourse-cdn.com/wolfram/original/2X/a/a921a5d9747dc9c4a3e72a3015b8812e32e3c509.png)

I have also sorted the letters with respect to their frequency. The code I suggest is not the shortest one but should be easy to understand.

Cheers,

M.

---

<div class="post-metadata">

**Author:** ![jackreeceejini](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jackreeceejini/32/20726_2.png) [@jackreeceejini](https://community.wolfram.com/u/jackreeceejini)\
**Post date:** [August 15, 2016, 9:35pm UTC](https://community.wolfram.com/t/letter-frequencies-in-wordlist/9059/3 "2016-08-15T21:35:50Z")

</div>

Thank you. Quite elegant. I appreciate.
