matchLanguage method

LogicalChannel matchLanguage(
  1. Language language
)
inherited

Matches Tweets that have been classified by Twitter as being of a particular language (if, and only if, the tweet has been classified).

It is important to note that each Tweet is currently only classified as being of one language, so AND’ing together multiple languages will yield no results.

You can only pass a single BCP 47 language identifier per this operator.

Note: if no language classification can be made the provided result is core.TweetLanguage.undefined (for undefined).

Type

Availability

  • Essential

Implementation

LogicalChannel matchLanguage(final Language language) =>
    _buffer.appendOperator(
      _conjunctionRequiredOperation.createTweetLang(language),
    );