Wolfram Language

Text & Language Processing

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
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
Thread[languages -> LetterNumber["z", languages]]
Out[2]=

Use FromLetterNumber to get the 25^(th) letter of each of those alphabets.

In[3]:=
Click for copyable input
Thread[languages -> FromLetterNumber[25, languages]]
Out[3]=

Related Examples

de es fr ja ko pt-br ru zh