Positions of Letters in Alphabets
Version 11 introduces the functions LetterNumber and FromLetterNumber to explore the characters of languages by their position in the respective alphabets.
Specify a list of languages spoken in European countries.
In[1]:=
![Click for copyable input](assets.en/positions-of-letters-in-alphabets/In_32.png)
languages = {"Croatian", "Dutch", "English", "French", "Hungarian",
"Latvian", "Polish", "Portuguese", "Romanian", "Spanish"};
Use LetterNumber to find the position of the character z in the alphabets of these languages. It varies from 26 to 43 in that list.
In[2]:=
![Click for copyable input](assets.en/positions-of-letters-in-alphabets/In_33.png)
Thread[languages -> LetterNumber["z", languages]]
Out[2]=
![](assets.en/positions-of-letters-in-alphabets/O_26.png)
Use FromLetterNumber to get the 25 letter of each of those alphabets.
In[3]:=
![Click for copyable input](assets.en/positions-of-letters-in-alphabets/In_34.png)
Thread[languages -> FromLetterNumber[25, languages]]
Out[3]=
![](assets.en/positions-of-letters-in-alphabets/O_27.png)