This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

LetterQ

LetterQ[string]
yields True if all the characters in the string are letters, and yields False otherwise.
  • LetterQ[string] by default gives False if string contains any space or punctuation characters.
  • LetterQ handles both ordinary and special characters.
  • In general, LetterQ treats as letters all characters that appear as ordinary text in any language.
  • LetterQ treats as letters such special characters as , , , and .
Test whether a character is a letter:
Test whether a character is a letter:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Test whether all characters in a string are letters:
Punctuation is not a letter:
Accented letters are still treated as letters:
Gothic letters are treated as letters:
Greek letters are treated as letters:
Characters that are not letters in ordinary natural language are not treated as letters:
All characters treated as letters:
Contiguous characters in character space may not all be letters:
An actual script-B character is nevertheless a letter:
Plot the character codes of letters:
Include the actual names of characters:
New in 2 | Last modified in 3