tag

Two-character IETF language code that identifies the language in which the article is written; for example: "en", "fr".

DataSift determines this language code by inspecting content of the article.

List of languages detected.

Query filtering

  1. Filter to articles where content is written in a paricular language:

    ||.||.tag == "en"

  2. Filter to articles where content is written in one of a set of languages:

    ||.||.tag in "en, fr"

  3. Filter to articles whose title's contain a set of keywords and phrases, and are in a particular language:

    ||..||.content contains_any "BMW, Alfa Romeo, Honda" 
    AND ||.||.tag == "en"

Analysis

You can use this target to analyze the language of articles that are being shared or engaged with.

  1. Analyze the languages of articles in the last 24 hours:

    "parameters": {
        "analysis_type": "freqDist",
        "parameters": {
            "target": "||.||.tag",
            "threshold": 10
        }
    }

  2. Analyze the languages of articles whose titles contain at least one of a set of keywords:

    "filter": "||..||.title contains_any \"BMW, Alfa Romeo, Honda\"",
    "parameters": {
        "analysis_type": "freqDist",
        "parameters": {
            "target": "||.||.tag",
            "threshold": 10
        }
    }

Resource information

Type: string

Tokenized for query filters: No

Analysis target: Yes

Query filter: Yes

Child analysis target: No