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.

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.

Click for copyable input
Thread[languages -> LetterNumber["z", languages]]

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

Click for copyable input
Thread[languages -> FromLetterNumber[25, languages]]

Related Examples

de es fr ja ko pt-br ru zh