Language

Language

is an option that specifies the language to use.

Details

  • Language is an option to textual and linguistic functions such as DictionaryWordQ, PalindromeQ, TextRecognize, etc., as well as a global front end option.
  • The value of the Language option is a string, such as "English", "Spanish". Some text-related functions also accept a "Language" entity or the value Automatic.
  • A typical default value is $Language.
  • The front end default setting is taken from the language set by your operating environment. If the language is not supported, then Language->"English" is the default setting.
  • The front end setting affects many aspects of the system, including where configuration files, text resource files, system resource files and documentation files are located. Each location containing language-specific files will contain subdirectories named after the language they contain. For example, a directory called "Japanese" will contain Japanese text resources and documentation. It is possible to have files for several different languages installed at the same time, with the Language option selecting which language is active.
  • For some kinds of resources, a new front end setting does not take effect until the front end is restarted.

Examples

open allclose all

Basic Examples  (5)

Look up the Russian alphabet:

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

Remove diacritics using Spanish language rules:

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

Compare with English language rules:

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

Get three random words in German:

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

Test whether a word exists in different languages:

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

Query the current user-interface language:

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

Scope  (1)

See Also

$Language  DefaultNaturalLanguage  LanguageCategory  TranslationOptions

Introduced in 1996
(3.0)
| Updated in 2017
(11.1)