Group Abstract Group Abstract

Message Boards Message Boards

The importance of letter 'R'

Posted 4 years ago
POSTED BY: Alan Parson
3 Replies

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
POSTED BY: Vitaliy Kaurov
Posted 4 years ago

Thank you - that provides more finer exploration of the matter! It also reminded me about existence of the words file on *nix machines, just in case someone wants to use it one day.

In[1]:= words = Import["/usr/share/dict/words"] // Flatten;
wordsLength = Length[words]

Out[1]= 235886

It has some lengthy words, which I won't try pronouncing:

In[2]:= Select[words, StringLength[#] > 23 &]

Out[2]= {"formaldehydesulphoxylate", "pathologicopsychological", \
"scientificophilosophical", "tetraiodophenolphthalein", \
"thyroparathyroidectomize"}

BarChart[((StringCases[words, ___ ~~ # ~~ ___] // Flatten // Length)/
      wordsLength*100.) & /@ Alphabet[],
 ChartLabels -> ToUpperCase@Alphabet[], PlotTheme -> "Detailed"]

English

POSTED BY: Alan Parson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard