---
title: "Developing Cross-lingual Sentiment Analysis of Malay Twitter"
description: "Zabha and colleagues combine Malay and English sentiment dictionaries to classify Malaysian tweets and compare the results with a human reader."
canonical: "https://research.elamur.ai/free/en/papers/zabha-2019-developing-cross-lingual-sentiment-analysis/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/zabha-2019-developing-cross-lingual-sentiment-analysis/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach

# Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach

Paper · 2019 · Nur Imanina Zabha, Zakiah Ayop, Syarulnaziah Anawar et al.

**Authors:** Nur Imanina Zabha, Zakiah Ayop, Syarulnaziah Anawar, Erman Hamid and Zaheera Zainal Abidin · **Year:** 2019 · **Venue:** International Journal of Advanced Computer Science and Applications · **Licence:** [CC BY (OpenAlex best open-access location)](https://creativecommons.org/licenses/by/4.0/)

International Journal of Advanced Computer Science and Applications · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](http://thesai.org/Downloads/Volume10No1/Paper_46-Developing_Cross_Lingual_Sentiment_Analysis.pdf)
- [DOI 10.14569/ijacsa.2019.0100146](https://doi.org/10.14569/ijacsa.2019.0100146)

## Summary

A tweet can express an opinion in Malay and [English](https://md.research.elamur.ai/free/en/topics/english/) at the same time. A system that looks up words in an English dictionary can therefore miss part of the evidence even when it recognizes some of the post. Zabha and colleagues study this problem in [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/), the task of identifying whether a text expresses a favorable, unfavorable or neutral attitude. They build a [cross-lingual](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/) system for Malaysian Twitter posts using existing sentiment dictionaries for both languages. Their aim is to make those resources work together on the kind of text a Malaysian reader might encounter in an ordinary search.

The system retrieves public tweets matching a search, cleans the text and looks up its words in the combined dictionary. A match to a positive entry contributes +1, a match to a negative entry contributes -1, and an unmatched word contributes 0. The contributions are added to produce a tweet score. In the paper’s example about a film, the English adjective *horrible* and the Malay adjective *mahal*, meaning expensive, both contribute negative evidence. Both matches affect the same score. The procedure can also take favorable cues from both languages, as the authors illustrate with a post about enjoying reading.

For the #Malaysia example, a request for 1000 tweets returned 100, and cleaning left 57. The authors compare automatic labels with judgments by a native Malaysian speaker and report accuracy of 0.554, precision of 0.478, recall of 0.733 and F1 of 0.578. The evaluation describes the metric equations in terms of the positive category, while the discussion attributes the recall figure to recognizing neutral tweets. The published results give a single set of scores, so the recall figure leaves that class-specific interpretation unresolved.

The system also plots the sentiment it assigns to tweets retrieved for public issues, including abuse and the GST and SST tax systems. These searches illustrate how an analyst could inspect the output for a topic. The human comparison supplies the evidence about classification performance. The authors identify slang, shortened words and dialect as recurring challenges for their dictionaries. Their study shows how an existing Malay resource can contribute alongside an English one in the same tweet, while leaving the size of that contribution and the accuracy on individual language varieties open.

## Deep dive: Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach

Zabha and colleagues combine Malay and English sentiment dictionaries to classify Malaysian tweets and compare the results with a human reader. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### The language of a social media post

The practical task starts with a question about a subject that people discuss online. A company might want to know how people respond to a product, or a public organization might want to follow discussion of an issue. Searching Twitter can assemble posts that mention the subject. Reading those posts answers a separate question about the attitudes they express. A search term can appear in praise, criticism or an ordinary statement of fact, so finding the right topic only supplies the material for sentiment analysis.

The authors motivate the work with the extent of social media use in Malaysia. They cite a survey reporting Internet penetration of 76.9% and a separate estimate of 19.05 million social media users in the country. Those figures describe the setting for the work. The experiment itself takes place on a collection of public Twitter posts assembled through searches. The practical appeal of automatic classification is that it makes this collection easier to inspect when the analyst wants an overview of favorable and unfavorable reactions.

In this setting, the language of the search topic may give little guidance about the language of an individual reply or comment. The authors describe mixed usage, sometimes called Bahasa Rojak, in which writers draw on Malay and English in the same stretch of text. For sentiment classification, what matters is where the evaluative words occur. A topic name may be in English and its assessment in Malay, or the writer may use expressions from both languages to reinforce the same assessment. A dictionary restricted to whichever language supplies the topic name would have incomplete access to those cues.

Malay is a [low-resource language](https://md.research.elamur.ai/free/en/topics/low-resource-languages/) in the specific sense that matters to the study. The authors identify a shortage of standardized sentiment dictionaries and publicly available classifiers for Malay. They describe English as better served by language-processing resources that cover vocabulary, slang and emoticons. The difference concerns the resources available for analysis. It creates a practical question about how to use the existing Malay vocabulary without giving up useful English coverage when both occur in the same post.

The paper also distinguishes mixed-language use from the difficulty of recognizing how words are written. Adding Malay entries can help when a writer uses a Malay form present in the dictionary. An abbreviated spelling of that same word may still fail to match. The same problem arises when a dialect expression has a meaning that a local reader recognizes and the reference vocabulary lacks. A single tweet can present both difficulties, and the combined dictionary addresses them to different degrees. It extends the range of standard vocabulary the classifier can see. Variation within that vocabulary remains a separate source of errors.

#### Earlier ways of assigning sentiment

The authors organize earlier research around supervised [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) and lexicon-based classification. A supervised classifier learns from examples that already carry sentiment labels. A training portion supplies the examples for learning, and a test portion is used to score predictions afterward. In this arrangement, the features are the properties derived from the text that the classifier can use when making a decision. Individual words are one possible source of features.

As an example from movie-review research, the paper describes a comparison involving Naïve Bayes, Maximum Entropy and support vector machines. It reports that the support vector machine performed best in the comparison using individual-word features. The researchers discussed there also saw potential in following the focus of a text, examining how its parts fit together through [discourse analysis](https://md.research.elamur.ai/free/en/concepts/discourse-analysis/), and tracing when different expressions refer to the same thing through [coreference resolution](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/). These proposals concern aspects of a review that an isolated word can leave ambiguous.

The Malay movie-review work discussed in the paper compares support vector machines, Naïve Bayes and nearest-neighbor classification. Its authors found the Malay review text noisy and stressed the importance of choosing and reducing features. In a follow-up, they proposed an immune-network-inspired way of selecting features during training and reported a favorable comparison with other filter methods. Zabha and colleagues use this history to show that a supervised procedure still has to contend with the forms in which people write. Collecting labeled examples and deciding which parts of each example should drive classification are separate jobs.

The paper presents supervised methods as capable of strong accuracy with good training data and cites work on the performance cost of moving a classifier to another domain. A lexicon offers a different starting point. It supplies words or phrases with polarity already assigned, which can be applied to new texts without learning a decision rule from a labeled collection for each topic. The authors describe that flexibility as a reason to consider the approach, while acknowledging that lexicon-based methods can be less accurate. This tradeoff comes from their discussion of earlier work. Their own experiment focuses on a dictionary method.

The background also describes a finer-grained approach to phrase-level sentiment. The earlier study it cites first asks whether an expression carries an attitude, then works out the direction of the attitude when there is one. Those questions are distinct. An expression may make an ordinary descriptive statement in one context and carry an evaluation in another. The distinction helps explain why building a dictionary is only part of sentiment analysis. The dictionary supplies a prior judgment about a word or phrase. The classifier still needs some rule for turning the evidence in context into a decision.

Other work discussed by the authors used linguistic analysis or patterns to find sentiment evidence. Opinion Observer treated language patterns as a way to compare opinions about product features. The paper draws its English dictionary from that line of research. Its own question has a coarser unit of analysis. It assigns sentiment to the tweet as a whole, even when the conversation around a product or event might contain judgments about several different aspects of it.

#### From earlier Malay resources to a mixed-language search

The paper situates the study alongside Malay sentiment classifiers for Facebook posts and Twitter discussions of low-cost airlines. It describes earlier lexicon efforts in those applications as having small vocabularies. The related Facebook emotion study had a different prediction target, since identifying an emotion asks more of a system than placing a post on a positive-to-negative scale. Another closely related study used the Malay Review Corpus. The search-based Twitter setup gives Zabha and colleagues a different kind of input from a settled collection of reviews.

The background also includes earlier work on acquiring and analyzing an English–Malay sentiment lexicon. The present study belongs to that existing line of work. Its practical choice is to take an available English resource and an available Malay resource, bring their entries into a shared representation, and apply a simple scoring rule to Twitter text. The paper describes both dictionaries as resources with prior construction procedures. The tweets in the study provide an application and an opportunity to assess the resulting classifier.

Putting the two dictionaries together changes what the lookup can recognize. It also lets the classifier handle the everyday case in which it would be awkward to assign a single language to the whole tweet before looking for sentiment. The shared rule treats a Malay cue and an English cue as evidence of the same kind. That choice makes the scoring straightforward, and it places much of the burden on vocabulary coverage and the polarity associated with each matched form.

The scope is deliberately narrower than the full range of languages that appear in Malaysian public conversation. The paper illustrates this with a Chinese-language example during its discussion of evaluation, then restates its focus on Malay and English. The central problem is therefore specific. Given a topic search and dictionaries for those languages, how much of the polarity available to a local reader can be recovered by looking up words and counting their contributions?

### The method, step by step

#### From a search to a collection of texts

The method begins with a subject or hashtag chosen by the analyst. The authors use a Twitter search function in R to request matching posts. They illustrate a search configured to request 1500 tweets for a subject. That value is a request setting in the methods illustration. The #Malaysia example later in the paper uses a different setting and distinguishes the requested amount from the amount actually retrieved.

The paper describes the intended inputs as public tweets written by Malaysians. A search retrieves posts associated with the subject, giving the analysis a topic before any sentiment has been calculated. Topics, account information and the text of the posts play different roles here. The topic selects the collection. The words in the message supply the evidence for the sentiment decision. The specified input to the classifier is the individual tweet, so the same retrieval can support a set of scores rather than a single score assigned directly to the topic.

The authors describe their system in phases covering preprocessing, the lexicon and sentiment analysis. Manual evaluation follows the automatic prediction. The collection and scoring steps fit together as follows.

From a Twitter search to sentiment assessment The steps in order.

#### Preparing the tweet for lookup

The authors point out that a raw Twitter result contains material beyond the words one would normally use to identify attitude. They mention account names, links, timestamps, hashtags, special characters, extra spaces, emoticons, abbreviations and common function words in their description of the input. Cleaning is intended to make the text suitable for extracting the forms that the dictionary can look up. The implementation uses R functions for that purpose. The paper lists the kinds of material encountered and leaves the exact treatment of each kind unspecified.

There is an important difference between cleaning an item of text and knowing what an informal expression means. Removing characters from around a word can make the word easier to match. Expanding a compressed expression requires information about which full form the writer intended. The authors’ discussion shows why this second problem matters here. After the material is ready for lookup, a dialect word or a shortened spelling can survive as a recognizable unit to a reader and still be absent from the lexicon.

Preparing units for lookup is a matter of [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), or dividing the text into the pieces the procedure will examine. The examples make clear that the scoring treats individual words as units of evidence. The length of a cleaned tweet and the number of entries recognized in it are therefore different quantities. A tweet can contain plenty of text and yield very few scored matches. Conversely, a short tweet can receive a directional score from a single recognized cue if the remaining words contribute nothing.

Hashtags illustrate why the role of a text feature also depends on the stage of the method. A hashtag can serve as the query that brings a tweet into the collection. The fact that it was useful for retrieval says nothing on its own about its contribution to the sentiment score. The paper gives a hashtag search as its main collection example and describes hashtags among the elements encountered in cleaning. It leaves the handling of hashtag contents during sentiment scoring open.

#### Bringing the dictionaries together

A sentiment lexicon is a vocabulary organized by the attitude its entries typically express. In this study, entries are grouped into positive and negative sets. The English material comes from the Opinion Observer work that the authors discuss in their background. They describe that resource as drawing on sentences whose polarity had been identified, with recurring product features sought through association mining and a heuristic used to prune candidates. Association mining looks for combinations that recur together. Pruning uses a rule to discard candidates and keep the procedure focused on the features it considers relevant.

The account of the English resource links recurring nouns or noun phrases to favorable and unfavorable observations. That account describes the provenance of the vocabulary. Running the Twitter classifier does not require repeating the original work of finding product features or inducing patterns from reviews. The implementation takes the resulting polarity entries as input. The distinction matters because the dictionary carries judgments made during its construction into an application where the subject might be a tax, a social issue or an unfamiliar product.

The Malay vocabulary comes from earlier work using WordNet. As described by Zabha and colleagues, semantic relationships such as synonymy help assign polarity through word meaning. The paper also mentions a Naïve Bayes check on judgments from the WordNet-based process. This check belongs to the account of how the Malay resource was prepared. The classifier evaluated on tweets uses entries whose signs have already been assigned, and the tweet decision itself comes from counting the recognized entries.

To combine the resources, the authors pool favorable words from both languages and do the same for unfavorable words. An English word and a Malay word can thus enter the same calculation directly. The procedure described in the paper does not need a translation step or a separate whole-tweet language decision. The polarity grouping supplies the common representation. The language of an entry explains which resource contributed it, while its sign determines how it affects the tweet score.

The authors also give examples of words outside the two polarity groups. These include ordinary function words and nouns that can name a person, object or subject without supplying a favorable or unfavorable judgment. In the calculation, an unlisted form is assigned 0. This is a default for the lookup. It covers ordinary words that bear little sentiment in the relevant example and also covers evaluative words the resources fail to recognize. Both cases have the same arithmetic effect.

That default explains why a dictionary’s coverage matters alongside the quality of its polarity assignments. When an entry is present with the appropriate sign, it contributes evidence. If it is present with a sign ill suited to the context, it can contribute misleading evidence. If it is absent, the rest of the tweet determines the score. The authors’ choice of a shared format makes the contribution of a match easy to trace, even when the source of a particular failure lies in the input form or the dictionary rather than in the addition.

#### Counting words to produce a score

The paper calls its scoring procedure term counting. Each positive match adds a favorable contribution, and each negative match adds an unfavorable contribution. Words that have neither assignment leave the score as it was. The written examples show the rule as additions of signed contributions. In general notation, the same rule is:

```
S(t) = ∑ᵢ p(wᵢ)
```

Here `t` is the cleaned tweet, and `S(t)` is its total sentiment score. The index `i` ranges over the word positions considered by the procedure. The symbol `wᵢ` denotes the word at position `i`, and `p(wᵢ)` is its polarity contribution from the lookup. The summation sign `∑` means to add the contributions across those positions. For each word, `p(wᵢ)` is +1 for a positive match, -1 for a negative match and 0 when the word is outside the polarity groups.

The index is a position in the tweet. The written scoring examples count contributions where the words occur, and the paper describes the procedure as counting the words found in each document. The rule gives a uniform weight to matches of the same polarity. A more emphatic word and a milder one can have the same contribution. Any extra effect from emphasis would have to come from additional scored words or from a separate rule, and the described calculation uses the signed lookups.

The rule is also indifferent to the order in which the contributions are added. This property is useful for the paper’s mixed-language examples. The Malay and English evidence can occur in different parts of the tweet and still end up in the same total. It also sets a boundary on what this particular scoring rule can represent. Clause structure, the scope of a cue, and a change of attitude from one part of a tweet to another are meaningful to a reader. Their effects enter this score only through the lookup contributions of the individual words.

The film example shows agreement between the languages. The word *horrible* contributes -1 and *mahal* also contributes -1 in the authors’ dictionary-based analysis. The remaining words contribute 0. The paper gives the resulting score as -2. A reader can see precisely how the second negative cue enters the result. Both belong to the same tweet, and each is part of the evidence counted by the algorithm.

The example about reading reverses the direction. The Malay word *suka*, expressing liking, and the English word *favourite* each contribute +1. The other forms receive 0, and the authors obtain +2. This example starts with a Malay expression of enjoyment and continues in English. The system can draw on both parts without asking which language should determine the overall classification.

The examples establish that a combined dictionary can accumulate evidence from both languages in a single calculation. They also show a subtle difference between the magnitude of the score and the final category. When recognized cues from both languages agree, looking up both can change the total while leaving its sign the same as it would have been with either cue alone. A higher magnitude means more net matched evidence under the rule. It is neither a confidence estimate supplied by the study nor a direct measure of how strongly the author felt.

#### Turning the score into a category

A total above 0 indicates positive sentiment under the counting rule, and a total below 0 indicates negative sentiment. The paper’s term-counting description initially foregrounds these directional classes. Its implementation description also includes neutral output, and the human comparison records an objective category in addition to the positive and negative ones. In the scoring scheme, 0 is the point where the lookup provides no net evidence in either direction.

There are different routes to that point. A tweet can contain no matched sentiment words. It can also contain recognized favorable and unfavorable cues whose contributions cancel. A local speaker could regard the first tweet as strongly evaluative if its key expression was missing from the dictionary. The speaker could interpret the second as a mixed judgment in which the final clause conveys the writer’s main view. The counting rule has the same total to work with in both situations. A neutral prediction records that arithmetic outcome.

The paper implements the classifier with R packages and generates a bar plot after scoring. The plot communicates the distribution of the automatic results for the collection at hand. It does not add information about the words used to make each decision. That difference is important when interpreting the topic demonstrations. Individual scores are generated from the dictionary matches, while the grouping of those outputs in the plot helps the analyst see how the search results were classified overall.

From a training perspective, these steps divide the work between the sources of the lexicons and the application. The polarity assignments are supplied by the existing resources. The described Twitter procedure specifies retrieval, cleaning, lookup and addition. The manual judgments come after prediction for the performance comparison. The paper gives no fitted tweet-level weights or procedure for using the native speaker’s labels to revise the dictionary before scoring the same collection.

#### Comparing the automatic labels with a reader’s labels

The paper uses human [annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) in the form of a native Malaysian speaker’s judgments. For each item compared, the reader assigns a sentiment category. The classifier’s label and the reader’s label are then entered in a contingency table, which counts how frequently each pair of categories occurs. The paper places the expert categories in the rows and the automatic categories in the columns. This orientation makes it possible to describe the direction of an error.

The diagonal entries are the agreements. `Tₚ` counts tweets both the expert and the method label positive, `Tₒₒ` counts agreements on objective, and `Tₙₙ` counts agreements on negative. The off-diagonal entries begin with `E` for an error. Their first subscript gives the expert’s label and their second gives the method’s label. In those subscripts, `p` means positive, `o` means objective and `n` means negative. For instance, `Eₒₙ` counts cases a reader judged objective that the method placed in the negative category. This is a different error from `Eₙₒ`, in which a negative item was assigned to objective.

The paper identifies accuracy, precision, recall and F1 as its evaluation measures and introduces the equations in terms of performance for the positive category. Using its table, the ordinary overall accuracy for the full category comparison can be expressed as:

```
A = (Tₚ + Tₒₒ + Tₙₙ) / N
```

`A` is overall accuracy, the fraction of tweet labels on which the method and reader agree. `Tₚ`, `Tₒₒ` and `Tₙₙ` are the agreement counts for positive, objective and negative respectively. `N` is the total number of compared tweets, including the disagreeing pairs. The plus signs combine the agreements in the numerator, the parentheses group that sum, and `/` divides it by the total. This form states the all-category reading of accuracy. The reported accuracy is presented as a single value without a filled table from which to verify its calculation.

For a positive-category reading, precision asks how often a positive prediction agrees with the expert. The denominator therefore follows the predicted-positive column:

```
P = Tₚ / (Tₚ + Eₒₚ + Eₙₚ)
```

`P` is positive precision. `Tₚ` counts agreed positives. `Eₒₚ` counts expert-objective items predicted positive, and `Eₙₚ` counts expert-negative items predicted positive. The sum inside the parentheses is the number predicted positive, and division by that sum gives the share of positive predictions the expert also calls positive.

Recall asks how many of the expert’s positives the method retrieves as positives. Its denominator follows the expert-positive row:

```
R = Tₚ / (Tₚ + Eₚₒ + Eₚₙ)
```

`R` is positive recall. `Tₚ` again counts agreed positives. `Eₚₒ` counts expert-positive items predicted objective, and `Eₚₙ` counts expert-positive items predicted negative. The parenthesized sum covers all expert-positive items. Dividing the agreements by that sum gives the share successfully identified.

F1 combines precision and recall by taking their harmonic mean. The usual expression for the measure named in the paper is:

```
F1 = (2 × P × R) / (P + R)
```

`F1` denotes the combined score, `P` is precision and `R` is recall. The multiplication sign `×` forms the scaled product of the two measures, and the constant `2` is the factor in their harmonic mean. The parentheses group the numerator and the denominator. The denominator adds precision and recall, and `/` divides by that sum. This expression penalizes an imbalance between precision and recall. A comparatively high value on one of them can coexist with a lower combined score.

The distinction between rows and columns is central to reading the results. Recall for positive sentiment asks about missed positives. Recall for the objective category would instead ask about missed objective judgments, using the expert-objective row. The method can be evaluated in either way given the needed counts. The reported results give a single recall value, and the paper’s description of what class it refers to is inconsistent.

### Experiments and results

#### What the search returned

The #Malaysia example shows how the evaluation material was obtained and how the amount available changed along the way. The search was configured for 1000 tweets. It returned 100, and the preprocessing stage produced 57 clean items. The authors attribute the limited retrieval to restrictions on access to recent tweets. These figures describe collection stages for the same search. They are counts of requested, returned and cleaned items, respectively.

Tweet counts across collection stages for the #Malaysia search The search returned fewer tweets than requested, and cleaning left a smaller collection for analysis.

**The numbers**

| System or setting | tweets |
| --- | --- |
| Requested from Twitter | 1000 |
| Returned by Twitter | 100 |
| Cleaned for the proposed method (this paper) | 57 |

The scale in this chart is collection volume. A larger count means more material at that stage, and the starred row identifies the collection available to the classifier after cleaning. Classification quality is measured separately. In particular, the gap between the request and the response arose at retrieval, before there were any words to score. The gap between the returned and cleaned counts arose during preparation. Neither gap gives a number of classifier mistakes.

The paper presents its performance table alongside this account and describes the evaluated material as English and Malay tweets. The sample is a search collection, with availability constrained by the platform and with fewer items remaining after cleaning. The study gives no separate training and test partitions for this collection. In keeping with the method, the dictionaries supply the decision rule before the comparison, and the manually assigned categories provide the reference judgments for that comparison.

The paper had already used 1500 as the requested size in its generic illustration of a subject search. The requested 1000 in the #Malaysia example is the setting attached to the reported retrieval and cleaning figures. These are settings for different purposes in the article. One shows how the collection function is called within the method, and the other gives the observed size changes in a concrete example. The experiment’s evidence about scale comes from the latter.

The unit of evaluation is a tweet’s category. A tweet can include Malay words, English words or expressions drawn from both. The paper reports the metrics for the English and Malay material together. It gives no breakdown of the collection by which languages appear in individual posts. The reported comparison therefore speaks about the evaluated collection as presented. It cannot reveal a separate rate for mixed-language posts or show how performance changes with the amount of language mixing in a tweet.

#### How the automatic decisions compared with a reader’s

The native speaker’s decisions are the reference for accuracy and the other reported measures. The paper gives the contingency table as a template with names for the cells. The metric table gives the resulting values. Together they describe the structure of the evaluation and the published scores. Since the cells are shown symbolically, the reader cannot recover how many times each particular type of disagreement occurred by inspecting the table.

Accuracy is 0.554 for the proposed method’s comparison with the human judgments on the English and Malay tweets. It is the headline measure of label agreement in the performance table. The authors describe the accuracy as middling and point to language forms the system has trouble processing. The number is specific to the evaluation they report. Its interpretation as broader performance would require knowing how the evaluated items relate to other tweets the classifier might encounter.

The paper reports precision of 0.478 and recall of 0.733 for the same evaluation. Under the positive-category framing of the metric definitions, precision concerns the reliability of predictions labeled positive, and recall concerns recovery of the tweets the expert labeled positive. A classifier can recover many reference positives and also assign that label to other tweets. These measures answer different questions about the same set of label pairs, so a higher recall than precision can arise without any inconsistency in the evaluation itself.

The ambiguity comes from the paper’s explanation of the class attached to recall. Its evaluation section introduces the measures in terms of the positive category. Later, the results discussion interprets recall of 0.733 as evidence that the method recognizes neutral tweets. The table does not identify a separate neutral recall or supply the counts needed to establish it. The value of 0.733 can be reported as the paper’s recall figure. A conclusion specifically about recall for neutral tweets would depend on a class assignment the report leaves unresolved.

The reported F1 is 0.578. The authors describe this score as adequate and note that their scale extends from 0.0 to 1.0, with 1.0 representing perfect performance. F1 summarizes precision and recall under whatever class or averaging convention was used in the calculation. It does not directly answer how well each of the tweet categories was recovered. In a comparison with an objective class, for instance, the precision and recall for objective judgments could differ from those for positive or negative judgments.

The reference reader is the only comparison used for these performance numbers. The paper reviews supervised classifiers and earlier lexicon approaches in its background, but offers no scores from another classifier on the same tweets. The reported experiment has no English-only run, Malay-only run or simple default prediction as a numerical baseline. This choice lets the authors assess how frequently their system agrees with a person. It leaves the performance advantage of combining the dictionaries unmeasured.

#### What the topic searches demonstrate

In addition to the performance comparison, the authors use searches on public issues to show the resulting sentiment distributions. The examples answer an operational question about whether an analyst can choose another subject and obtain a plot. They also provide specific occasions to ask what a plotted category means. A negative classification is based on cues found in a retrieved tweet. Interpreting the reason for that negativity can require reading the tweet and identifying the object of the attitude.

The search on *Kes Dera*, a term associated with abuse cases, provides the clearest directional example in the authors’ discussion. They describe the results as showing anger and negative comments around the subject. The plot groups the tweets by the automatic procedure’s sentiment output. It can indicate a concentration of negative language in the search results. It does not directly identify anger as a distinct emotion, since the system’s output is polarity. The interpretation of anger comes from the authors’ discussion of what the returned posts were about.

The tax examples compare discussion retrieved for Goods and Services Tax, or GST, with discussion returned for Sales and Services Tax, or SST. The authors characterize the GST results as mixed and the SST results as more negative in comparison. The paper presents them as searches on related subjects whose plots can be read side by side. The reports give a qualitative impression of the classified collections, without a matched design or performance scores for the individual tax searches.

For the LGBT-related search, the authors describe the plotted positive and negative results as balanced. That characterization is about the output of a subject search and its classifier. The paper provides no separately evaluated reference distribution for it. The topic also makes clear why sentiment toward a tweet’s subject and sentiment somewhere in the text need to be distinguished. A post can contain negative language about a reaction, an event or a person mentioned in the discussion. The term-counting system gives the tweet an overall label regardless of which of these the language targets.

Taken together, these demonstrations show the interface between search and analysis. Changing the query changes the material to which the same scoring procedure is applied. The plots make the method usable on several topics in the sense of producing an organized output each time. Establishing what fraction of the labels on any one issue are correct would require the kind of human comparison the paper reports separately. Establishing what the wider public thinks would require evidence beyond those retrieved posts.

### What the ablations show

The paper reports no formal ablation, and its analyses instead consist of worked scoring examples, comparisons with a native speaker’s judgments, illustrations of difficult language forms and topic-level sentiment plots.

#### What the individual word examples establish

A formal component comparison would rerun the decision procedure with a part of it removed or changed while keeping the evaluation material fixed. Here the clearest view into a component comes from the arithmetic examples. In the film tweet, a negative English word and a negative Malay word both appear among the counted items. In the reading tweet, favorable words from both languages contribute. Each example lets the reader trace what the additional language resource can make visible to the scorer.

Those examples are demonstrations of access to cues. In both, the two scored cues agree in direction. The calculation makes clear why the joint score incorporates more evidence in these particular messages. The examples cannot show how often adding the second language changes the category on a collection of tweets. That would depend on how frequently one language supplies the only cue, how frequently cues from the languages disagree and how often extra entries create misleading matches. The paper has no collection-level comparison addressing those cases.

The same reasoning applies to preprocessing. The retrieval example records that fewer tweets remain after preparation, so there is evidence that cleaning affects the collection the classifier receives. The paper gives no paired scores for a cleaned and an otherwise equivalent uncleaned input. The count of retained tweets identifies a stage at which data were lost. It cannot identify the contribution of a specific cleaning choice to accuracy, precision or recall.

#### What the difficult expressions reveal

The dialect example concerns a message about attending an interview to gain experience. English words in the message give a reader recognizable clues about the subject, while the Malay dialect forms carry information needed to understand the full statement. The authors provide the intended reading to illustrate a gap between seeing a few familiar words and interpreting how the whole utterance is put together. The study offers the example as a challenge for the vocabulary and supplies no scored comparison between the original and an expanded version.

The shortened-language example deals with a writer saying they did not like playing a game earlier. The authors supply a version with the abbreviated Malay words written in full. This is a useful contrast because the intended position is recoverable to the native reader even though several surface forms differ from ordinary dictionary entries. If a polarity-bearing form is missing from lookup, it contributes 0. If a negative construction is recognizable only after expansion, simply knowing the sentiment of the word for liking leaves the computation with an incomplete account of what the writer said.

These are diagnostic examples of plausible error mechanisms. They connect the authors’ explanation about standardized vocabularies to specific properties of the input. Their scope is small. The paper does not count all tweets with abbreviated forms, show how frequently their labels disagreed with the expert’s, or test an expanded lexicon on those same items. The illustrations support the existence of a coverage problem. They leave its share of the total error undetermined.

#### How much the evaluation can explain

The contingency table gives a scheme for separating kinds of disagreement. A false positive can arise from an objective or negative reference label, and a missed positive can end up as objective or negative. These paths matter when diagnosing a dictionary method. Assigning objective to a tweet with an unrecognized cue suggests a different problem from confidently scoring the tweet in the opposing direction. The published scores give only a partial view because the paper leaves the table’s individual error counts unspecified.

At topic level, the authors compare outputs for GST and SST. This is a comparison of different query results using the same system, which makes it a demonstration of use across subjects. The retrieval process also changes the input, so differences in the plots can come from the posts available to the searches as well as from the sentiments the system recognizes in them. Neither search serves as a control for the other. The plots show the system’s assigned distributions and leave their agreement with a reader on those particular topics unknown.

The analyses consequently provide evidence at different levels. The examples show how the arithmetic incorporates recognized words and where recognizable meaning can escape the dictionary. The human comparison establishes the reported performance of the combined procedure on the evaluation material. The topic plots illustrate the resulting output when the search changes. Identifying the individual source of a performance gain would require evidence that varies the relevant part of the procedure while keeping the comparison conditions fixed.

### Limitations

#### Limits identified by the authors

The main linguistic limits named by the authors are slang, shortened spellings and dialect. Their lexicons use standardized word forms. A local speaker may be able to expand an abbreviation or interpret a dialect expression from the rest of the message. The classifier requires an entry it can recognize in the cleaned text. In this design, the combined vocabulary reduces a language-resource gap without automatically accounting for variation inside either language.

The paper’s examples also show why the problem can go beyond losing an occasional descriptive word. A shortened expression can carry the attitude itself or qualify the attitude conveyed by a nearby word. Missing it can therefore affect the direction of the decision. Standardizing text for dictionary lookup is helpful only to the extent that the procedure preserves the relevant meaning. The authors’ proposed future vocabulary would include short forms, slang, dialect forms and stop words. The study reports this as future work, with no measured effect from those additions.

The authors identify the small amount of clean data as a limit on their confidence in the results. The concrete example of this problem is the #Malaysia search, for which the returned collection was smaller than the request and became smaller again during cleaning. Each reduction matters for a different reason. Limited retrieval constrains what messages are available to study. Cleaning determines which of those messages become suitable inputs. The authors report the collection sizes and leave the distribution of sentiments in the missing or excluded material unknown.

The authors restrict language coverage to Malay and English. Their discussion of another language appearing in Malaysian communication reinforces the boundary of the proposed tool. A system that combines these particular dictionaries has access to positive and negative entries drawn from those resources. Even within a tweet containing both supported languages, its output depends on what survives cleaning and which forms are present in the lexicons. Geographic relevance and vocabulary coverage are distinct properties.

#### Limits of the comparison and reporting

A reader can infer a further limit from the experimental design. The reported accuracy measures agreement for the whole system on the collection examined. Since both lexicons were active throughout the evaluation, the experiment cannot establish how much agreement would have been obtained with either dictionary alone. The worked examples clarify that both can contribute. Estimating a gain attributable to the combination would require results from corresponding runs on the same labeled items.

The paper also leaves the role of class prevalence uncertain. Accuracy is affected by how common each reference category is, because each item contributes equally to the total. Precision and recall for a category depend on which labels are assigned by the reader and the system. The symbolic contingency table has places for these counts. Without the populated cells or class totals, the reader cannot tell whether the aggregate score is dominated by the most frequent category or whether a particular class accounts for most of the mistakes.

The class ambiguity in recall is a reporting limit with a practical consequence. A reader interested in detecting favorable reactions would look for recall on reader-labeled positives. A reader interested in keeping ordinary discussion separate from sentiment would look for recall on objective items. The paper’s definitions and discussion point to different interpretations of the reported value. With a single number and no class-specific table, neither use can be supported by assigning that number to both classes. The paper’s broader conclusion about trust goes further than the documented class information warrants.

The evaluation describes judgments by a native Malaysian speaker. This gives the system a human point of comparison informed by the kind of language the authors want to analyze. The paper does not report independent judgments by additional speakers, agreement between readers or detailed instructions for handling mixed attitudes. A tweet containing both praise and criticism could be labeled according to the main attitude, the final attitude or the presence of conflicting cues. These are possible interpretations of the task. The evaluation report leaves the judgment convention for such cases unspecified.

There are also limits on reproducing the collection and decisions exactly. The paper names the search function, gives examples of requests, identifies the lexicon sources and explains the scoring. It does not give a complete sequence of cleaning transformations or document how conflicts between entries would be handled if they arose in the merged vocabulary. The high-level rule is clear enough to understand how the worked examples score. Exact replication would additionally depend on the particular posts retrieved and the forms the implementation makes available for lookup.

#### Limits of a tweet-level polarity score

The score uses the signs of the matched words and adds them. This imposes a particular meaning on the output. A tweet with one favorable cue and one unfavorable cue receives the same net evidence as a tweet with no recognized cues, provided the rest of the contributions are 0. The reader might distinguish an ambivalent opinion from an objective description or from an opinion written entirely in unfamiliar vocabulary. The rule itself gives these different situations the same numerical starting point for categorization.

The method likewise assigns each recognized positive and negative word the same magnitude. A word’s score may be easy to inspect, but its force in the actual tweet can depend on surrounding words. A phrase expressing dislike can include a word which, by itself, is associated with liking. Whether the dictionary gives the correct result then depends on what the other words contribute and whether those contributions reflect the scope of the expression. The paper describes no compositional rule that can make the positive contribution of a particular word contingent on a nearby negative construction.

The target of sentiment presents a related issue. A single tweet can mention the subject of the search, a person commenting on it and a response to that person. A negative expression may refer to any of them. The query explains why the tweet is in the collection. The scoring procedure finds a prevailing sign among the recognized words. The paper’s output does not assign that sign to a specific entity, so the conclusion that it is directed at the search subject remains an interpretation.

A score’s magnitude also depends on the number and kinds of matched words. The procedure sums contributions as written and does not report normalization by tweet length. A tweet that repeats a recognizable kind of evidence can accumulate a larger total than one that expresses its attitude succinctly. Reading a larger magnitude as greater intensity would require a separate evaluation connecting the numerical score to human judgments of intensity. The paper evaluates category assignments.

#### Limits of conclusions about public opinion

The paper proposes social monitoring uses for the system and offers topic plots to illustrate them. The input for each plot comes from public accounts retrieved by searching particular words or hashtags under the access conditions described. People who discuss a topic without using those search terms may fall outside the results. People who do not post publicly are outside the stated collection procedure. A distribution of classified search results therefore speaks first about the retrieved records.

The move from a tweet count to a statement about what people think also changes the unit of analysis. The method labels posts. The paper does not analyze whether several posts come from the same person or how frequently different people express an opinion. It gives no basis for treating the plot as a count of distinct people or a representative measure of the population. Its strongest interpretation is as a description of how the system classified the discussion assembled by the particular search.

Finally, the topical examples offer no independent check on how classification error changes across subjects. The same vocabulary may encounter familiar sentiment terms on one topic and more abbreviated, dialectal or context-dependent language on another. The paper’s examples demonstrate that the procedure returns results for several searches. The reported quality assessment applies to the evaluated collection, and extending it to a different topic would require corresponding evidence about those tweets and their human labels.

### What came after

No later study is identified as extending or evaluating this particular classifier. The paper closes with the authors’ plan to broaden lexical coverage, leaving the effect of adding shortened forms, slang, dialect vocabulary and stop words untested in the reported study.

## Cite

Cite as Nur Imanina Zabha, Zakiah Ayop, Syarulnaziah Anawar, Erman Hamid and Zaheera Zainal Abidin. 2019. Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach. International Journal of Advanced Computer Science and Applications.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.14569/ijacsa.2019.0100146](https://doi.org/10.14569/ijacsa.2019.0100146)

```bibtex
@article{zabha2019developing,
  title = {{Developing Cross-lingual Sentiment Analysis of Malay Twitter Data Using Lexicon-based Approach}},
  author = {Nur Imanina Zabha, Zakiah Ayop, Syarulnaziah Anawar, Erman Hamid and Zaheera Zainal Abidin},
  journal = {International Journal of Advanced Computer Science and Applications},
  year = {2019},
  doi = {10.14569/ijacsa.2019.0100146},
  url = {https://doi.org/10.14569/ijacsa.2019.0100146}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
