"ProgrammingLanguage" (Text Content Type)
[Experimental]
Text identified as the name of a programming language.
Details

- "ProgrammingLanguage" can be used in TextCases, TextPosition and TextContents.
- "ProgrammingLanguage" corresponds to any mention of a programming language (real or not real) in the context of the text.
- Homonyms of programming languages that are not programming languages should not be detected as "ProgrammingLanguage" (if the context allows disambiguation).
- TextCases[…,"ProgrammingLanguage""Interpretation"] attempts to return entities of type "ProgrammingLanguage", as Interpreter["ProgrammingLanguage"] does.
- Any specific "ProgrammingLanguage" entity such as can also be used as a content type in TextCases, TextPosition and TextContents.
Examples
Basic Examples (3)Summary of the most common use cases
Find occurrences of programming languages in a text:
In[1]:=1

✖
https://wolfram.com/xid/0cd2aydfqb240f9l9jbvf02351e-qzf3s2
Out[1]=1

Get the result as a list of "ProgrammingLanguage" entities:
In[2]:=2

✖
https://wolfram.com/xid/0cd2aydfqb240f9l9jbvf02351e-n3etrp
Out[2]=2

A similar result can be obtained by applying Interpreter["ProgrammingLanguage"] to text snippets:
In[3]:=3

✖
https://wolfram.com/xid/0cd2aydfqb240f9l9jbvf02351e-c2b62n
Out[3]=3

Get properties about occurrences of programming languages:
In[1]:=1

✖
https://wolfram.com/xid/0cd2aydfqb240f9l9jbvf02351e-tzqvbo
Out[1]=1

Find mentions of Clojure in a text:
In[1]:=1

✖
https://wolfram.com/xid/0cd2aydfqb240f9l9jbvf02351e-s1idr
Out[1]=1
