interaction.author.language

This target encapsulates twitter.user.lang or twitter.retweet.user.lang and contains information about the language the Twitter user selected from the drop-down list on their Settings page.

It is an indication of their primary language but it might be misleading. For example, a user might select French as their mother tongue but compose their Tweets in English. DataSift offers an augmentation called Language which determines the language based on a statistical analysis of groups of characters.

The drop-down list shows the full name of the language (English, French, German, and so on) but the twitter.user.lang target contains the code for the language.

Take a look at the list of languages that Twitter supports.

Examples

  1. Filter for Tweets from authors who specify French as their preferred language and mention Paris:

    interaction.author.language == "fr"
    and 
    interaction.content contains "Paris"

  2. Filter for Tweets from authors who specify French as their preferred language but Tweet in English:

    interaction.author.language == "fr"
    and
    language.tag == "en"

Resource information

Target service: The Common Target: Interaction

Target object: Interaction: Author

Type: string

Array: No

Always exists: No