"ProgrammingLanguage" (Text Content Type)
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)
Find occurrences of programming languages in a text:
Get the result as a list of "ProgrammingLanguage" entities:
A similar result can be obtained by applying Interpreter["ProgrammingLanguage"] to text snippets: