"ProgrammingLanguage" (Built-in Classifier)
Recognize the programming language of a code snippet.
Classes


Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Determine the language of a given code:
In[1]:=1

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-vojt5n
Out[1]=1

Obtain the probabilities for the most likely classes:
In[2]:=2

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-pgl1oa
Out[2]=2

Obtain a ClassifierFunction for this classifier:
In[1]:=1

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-6cwlu3
Out[1]=1

Apply the classifier to a code snippet:
In[2]:=2

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-l0fphr
Out[2]=2

Scope (1)Survey of the scope of standard use cases
Load the ClassifierFunction corresponding to the built-in classifier:
In[1]:=1

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-jsnagu
Out[1]=1

In[2]:=2

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-e7vozp
Out[2]=2

Options (2)Common values & functionality for each option
ClassPriors (1)
Use a custom ClassPriors to restrict the possible outputs:
In[1]:=1

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-bpgox1
Out[1]=1

IndeterminateThreshold (1)
Use a custom IndeterminateThreshold:
In[1]:=1

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-ejjm9x
Out[1]=1

Neat Examples (1)Surprising or curious use cases
Obtain different possible languages with their corresponding probabilities:
In[1]:=1

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-jg50lj
Visualize the result using WordCloud:
In[2]:=2

✖
https://wolfram.com/xid/0ejwpv187nlezmtxqzqfm-j91504
Out[2]=2
