LetterQ

LetterQ[string]

yields True if all the characters in the string are letters, and yields False otherwise.

Details

  • LetterQ[string] by default gives False if string contains any space or punctuation characters.
  • LetterQ handles both ordinary and special characters.
  • LetterQ treats as letters all special characters explicitly listed as letters in the table in "Named 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 æ.
  • LetterQ does not treat as letters (\[EmptySet]), (\[HBar]), (\[Angstrom]), or (\[Sum]).

Examples

open allclose all

Basic Examples  (1)

Test whether a character is a letter:

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

Scope  (6)

Generalizations & Extensions  (1)

Properties & Relations  (1)

Possible Issues  (1)

Neat Examples  (1)

See Also

DigitQ  UpperCaseQ  LowerCaseQ  CharacterRange  LetterCharacter  StringExpression  PrintableASCIIQ  LetterCounts  Alphabet

Tutorials

Introduced in 1991
(2.0)
| Updated in 1996
(3.0)