Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

LetterNumber

LetterNumber["c"]
gives the position of the character c in the standard alphabet in which it appears.

LetterNumber["c",alpha]
gives the position of c in the alphabet specified by alpha.

DetailsDetails

  • The character c can be either uppercase or lowercase.
  • An alphabet can be specified by the entity for a language or by its standard name.
  • If the character c does not appear in a known alphabet, LetterNumber["c"] yields Missing["NotApplicable"].

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

The fourth letter in the English alphabet is d:

In[1]:=
Click for copyable input
Out[1]=

LetterNumber works the same with uppercase letters:

In[2]:=
Click for copyable input
Out[2]=

The third letter in the Greek alphabet is :

In[1]:=
Click for copyable input
Out[1]=

Find the position of a letter in the Russian alphabet:

In[1]:=
Click for copyable input
Out[1]=

Get positions of each of the letters in a string:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2015
(10.1)
| Updated in 2015
(10.2)