Wolfram Language

Multilingual Functionality

Word Cloud of Most Common Letters by Script

The most common writing scripts among "Alphabet" entities are the following.

In[1]:=
Click for copyable input
commonscripts = {Entity["WritingScript", "Arabic::3y92v"], Entity["WritingScript", "Cyrillic::73gxm"], Entity["WritingScript", "Latin::6tr5q"]};

With the help of Alphabet and the implicit classes for each script, build an association with counts for each letter by script.

In[2]:=
Click for copyable input
allletters = AssociationMap[ Counts[Flatten[ Alphabet /@ EntityList[ EntityClass["Alphabet", {"WritingScripts" -> #}]]]] &, commonscripts];

Build a cloud of letters for each script.

show complete Wolfram Language input
In[3]:=
Click for copyable input
With[{cloudmask = Graphics[Disk[{0, 0}, {.35, .2}], PlotRange -> {{-1, 1}, {-1, 1}}, ImageSize -> 256]}, Overlay[{WordCloud[#2, cloudmask, PlotTheme -> "Marketing", ImageSize -> 256], Framed[#1["Name"], Background -> GrayLevel[0, 0.2], BaseStyle -> {RGBColor[0.8, 0.8, 0.8], 13}, FrameStyle -> RGBColor[0.8, 0.8, 0.8], RoundingRadius -> 5]}, Alignment -> Center] & @@@ Normal[allletters]] // Column
Out[3]=

Related Examples

de es fr ja ko pt-br ru zh