"Language" (Text Content Type)
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
- LanguageData
-
- Entity Types
- Language
-
- Interpreter Types
- Language
- ComputedLanguage
-
- Text Contents
- Religion
- Mythology
- Alphabet
- WritingScript
- Word
- Country
- HistoricalCountry
- Related Guides
-
-
See Also
- TextCases
- TextPosition
- TextSentences
- Containing
- LanguageData
-
- Entity Types
- Language
-
- Interpreter Types
- Language
- ComputedLanguage
-
- Text Contents
- Religion
- Mythology
- Alphabet
- WritingScript
- Word
- Country
- HistoricalCountry
- Related Guides
-
See Also
"Language" (Text Content Type)
Text identified as the name of a language.
Details
- "Language" can be used in TextCases, TextPosition and TextContents.
- "Language" corresponds to any mention of a language (real or not real) in the context of the text.
- Homonyms of languages that are not languages should not be detected as "Language" (if the context allows disambiguation).
- TextCases[…,"Language""Interpretation"] attempts to return entities of type "Language", as Interpreter["Language"] does.
- Any specific "Language" entity such as
can also be used as a content type in TextCases, TextPosition and TextContents.
Examples
Basic Examples (3)
Find occurrences of languages in a text:
TextCases["The English must have been dislodged soon after, since in 1298 Urquhart was again controlled by the Scots.", "Language"]Get the result as a list of "Language" entities:
TextCases["The English must have been dislodged soon after, since in 1298 Urquhart was again controlled by the Scots.", "Language" -> "Interpretation", VerifyInterpretation -> True]A similar result can be obtained by applying Interpreter["Language"] to text snippets:
Interpreter["Language"][{"English", "Scots"}]Get properties about occurrences of languages:
TextContents["The English must have been dislodged soon after, since in 1298 Urquhart was again controlled by the Scots.", "Language", All]Find mentions of English in a text:
TextContents["Edward's invasion marked the beginning of the Wars of Scottish Independence, which would go on intermittently until 1357. Edward appointed Sir William fitz Warin as constable to hold the castle for the English. In 1297 he was ambushed by Sir Andrew de Moray while returning from Inverness, and Moray subsequently laid siege to the castle, launching an unsuccessful night attack. The English must have been dislodged soon after, since in 1298 Urquhart was again controlled by the Scots.", Entity["Language", "English::385w8"]]See Also
TextCases TextPosition TextSentences Containing LanguageData
Entity Types: Language
Interpreter Types: Language ComputedLanguage
Text Contents: Religion Mythology Alphabet WritingScript Word Country HistoricalCountry