Elamur Research

Rule-based Text Normalization for Malay Social Media Texts

Paper · 2020 · Siti Noor Allia Noor Ariffin and Sabrina Binti Tiun

Summary

A reader of an informal Malay tweet may recognize a familiar word even when its spelling is shortened, shaped by dialect, or stretched for emphasis. A program assigning grammatical labels has to make that connection from the text it receives. Siti Noor Allia Noor Ariffin and Sabrina Tiun study whether rewriting some of these forms before part-of-speech tagging helps a classifier identify the grammatical role of each token. Their normalizer is designed for Malay tweets from Malaysia, including tweets that mix Malay with English or with Arabic written in Roman letters.

The authors combine a repository of observed variants with rules for particular kinds of writing. The repository, built from a manually selected collection of 1,791 tweets containing 38,714 words, maps 2,848 nonstandard variants to 1,292 standard forms. Some operations bring several spellings together, as when tranung, teganu, and ganu become terengganu. Others change how the text is divided into words. For example, taknak becomes tak nak. The procedure also removes material such as web links and user mentions and standardizes eligible English words according to American English. The output can therefore still contain words from several languages.

The authors evaluate the normalizer on different preparations of the same test tweets, using manually assigned grammatical labels to check the tagger’s predictions. The highest reported accuracy for their tagger is 97.43% on the normalized test tweets. The earlier Malay tagging study they use as a benchmark reports 94.6% accuracy on its version of the normalized tweets. The studies share the underlying tweet collection, but their taggers and input formats differ. Within the new experiment, the authors identify punctuation removal, lowercasing, and the full normalization procedure as the most helpful stages. The number of distinct terms in the test corpus falls from 1,028 at the start to 842 at the final stage.

These results establish that the prepared tweets were easier for the tested tagger to label under the study’s evaluation procedure. They also show why the preparation of a test set matters. A spelling replacement can give the tagger a familiar form, a split can give it different units to label, and a deletion can remove a unit from scoring altogether. The study measures the combined result through tagging accuracy. It leaves open how frequently each rule recovers the intended wording and how much of the benefit would carry over to another collection or application.

Deep dive: Rule-based Text Normalization for Malay Social Media Texts

Ariffin and Tiun develop rules for normalizing informal Malay tweets and test how the resulting text affects part-of-speech tagging. · about 35 minutes to read

The problem and its context

What makes a tweet difficult to process

The paper begins with a practical mismatch between how people write online and the forms a language-processing program can recognize. People have reasons to shorten phrases, write as they speak, and use expressive spelling. The authors point to Twitter’s limit of 280 as one incentive for compact writing. Space is only part of the problem they describe. The same collection includes regional forms, slang, spelling mistakes, expressions of feeling, and switches between languages. An unfamiliar string can arise through any of these routes, and the appropriate treatment depends on how the string is being used.

Consider two examples from the study. The spellings ganu and teganu refer to the place the normalizer writes as terengganu. Recognizing either form means treating the shorter name as a variant of the same place name. The joined form taknak presents a different problem. It is written without a space, but the authors want the output to contain tak followed by nak. The first operation changes the form of a single unit. The second changes the boundary between units, a concern of tokenization.

Those differences matter as soon as a classifier has to attach a label to each unit. After a spelling replacement, it can classify an item with a form closer to what appears in its training material. After a split, there are separate locations for grammatical labels. Capital letters, punctuation, symbols, and numerals introduce yet other decisions. Lowercasing makes forms that differ only in case identical. Removing material can shorten the input and alter which tokens are next to each other. The authors test such operations because they can change both the inventory of forms and the context in which a tagger encounters them.

Mixed-language writing makes the definition of a standard form especially important. The authors include Malay, Romanized Arabic, and English because those are the languages they are targeting in the collected tweets. Their approach gives each supported language its own conventions. A Malay spelling can be mapped to a standard Malay form, and an abbreviated English expression can be expanded in English. The intended output is thus a more regular representation of a mixed-language tweet. The term normalization in this study encompasses several ways of making text more regular, from standardizing individual words to removing characters or dividing an expression.

The authors see potential value for other tasks in natural language processing. They mention translation and the identification of named entities alongside grammatical tagging. Their rationale is that a system may make better use of a familiar expression than of an irregular spelling it rarely encounters. The paper also emphasizes context in tagging. If an unfamiliar word contributes to an incorrect label, the surrounding analysis may suffer because the tagger uses information from nearby material. The tagging experiment gives the authors a way to test the practical consequences of preparation in a particular application.

What earlier preprocessing covered

In reviewing Malay text studies, the authors find that researchers had already used a wide range of preprocessing operations. A survey they discuss identified 17 techniques. Among them were changes to capitalization, segmentation into tokens, and spelling correction. A study of the Sabah dialect used 7 of the techniques identified in that survey. Other studies used smaller sets of operations suited to their own data and tasks. The variation matters because a label such as preprocessing gives little indication of which decisions were actually applied to a collection.

Some of the work discussed in the paper removed punctuation, discarded items treated as nonwords, or filtered out common words. Other studies dealt with spam, emoticons, repeated letters, diacritics, and markers specific to social media. Some selected messages by language or by suitability for the analysis before processing their contents. Such choices address different issues. Selecting a tweet determines whether the message enters the collection at all. Removing a symbol changes a message that has already been selected. Correcting a spelling gives an item a different written form. A method can succeed at one of these operations while leaving problems addressed by the others.

The paper also discusses a general preprocessing account that includes reducing words to stems or dictionary forms alongside casing, punctuation handling, and spelling correction. These operations help locate the scope of the authors’ own method. Mapping a colloquial family term to a conventional spelling is a decision about which expression corresponds to the observed form. Removing an ending to simplify a token is a decision about how much of that expression to retain. A single normalizer can make both decisions, but they have different consequences for the resulting text.

A particularly close precedent was research on informal Indonesian tweets. Its procedure included lowercasing, handling attached particles, shortening repeated expressions, correcting written shortcuts, and separating words that had been run together. Its examples illustrated how an apparently small spelling change could call for operations at several levels. Byk could be expanded to banyak, while takapa could be divided into tak apa. The present authors take those patterns as a starting point and adapt them to the Malay social media collection they study, which includes additional variation from slang, regional names, and language mixing.

The Indonesian examples also show how much a normalization rule depends on its intended output. A rule that reduces bunga-bunga to bunga defines a simpler form for computational use. A rule that divides jomlah into jom lah keeps both pieces visible. Both operate on strings with recognizable parts, yet the first discards written material and the second restores a boundary. The authors’ method inherits this broad conception of normalization. The experiment consequently asks what happens when a collection undergoes a combination of operations with different linguistic effects.

Why the authors chose a tagging test

The closest point of comparison was the authors’ earlier study of a Malay social media tagger. That work had compared grammatical tagging on raw tweets and on a version prepared with basic normalization. It supplied a test collection and a comparison procedure for the new study. The new question was how more extensive preparation, including a normalizer built around observed variants, would affect the same kind of task.

The paper also cites an English study that assessed text normalization through the performance of a spell checker. That precedent offered a way to judge preprocessing by observing a later application. In the Malay experiment, a human supplies reference labels, and the classifier’s predictions can be checked against them. The procedure gives normalization a practical target. A preprocessing change is useful by this measure if the resulting tokens receive correct labels more often.

Prior work discussed by the authors connects normalization to a decrease in unfamiliar or nonstandard forms and associates that decrease with improved tagging. The argument fits the problem posed by the tweets. A classifier trained to recognize recurring forms can encounter a new spelling of a familiar word at test time. Converting that spelling into a familiar version gives the classifier a better opportunity to use what it has learned. The same change can also make the neighboring context more familiar. These are reasons to expect a benefit, while the experiment is needed to assess what actually happens after the transformations are combined.

The paper presents its contribution as a dedicated normalizer for Malay social media text. Its review already credits earlier studies with many of the individual operations. The new contribution lies in adapting and combining operations for the target collection, building a repository of informal variants, and examining the effect of the resulting preparation across several stages of grammatical tagging.

The method, step by step

From observed spellings to a repository

The method begins with examples of how people write. The authors manually collect tweets from Malaysian Twitter accounts and select messages that contain nonstandard Malay. Their selection also admits mixed-language messages where English or Romanized Arabic appears with Malay. The development collection therefore emphasizes the kind of material the normalizer is meant to handle. It contains 1,791 tweets and 38,714 words. These figures describe the collection used to develop the procedure, while the test corpus used for tagging comparisons comes from the earlier Malay study.

The researchers build a repository that connects the observed variants with standard forms. Many variant entries can point to the same output. The authors record 2,848 nonstandard variants and 1,292 standard forms. The most varied entry they identify is beritahu, with 16 variants. That example illustrates why the repository is indexed around equivalences. If each spelling were treated independently, the vocabulary would preserve distinctions the normalization procedure regards as alternative ways of writing the same word.

The repository addresses irregular cases that are difficult to capture by a single rule about letters. The transformation from ganu to terengganu depends on knowing the place name that the abbreviated or regional spelling refers to. A rule that splits an attached particle has a more regular pattern to work with. Both can belong in the same procedure because they answer complementary questions. A mapping supplies the expected output for a recognized form. A pattern describes how to handle families of forms whose structure supports a common operation.

Language references help the authors choose outputs. The paper cites Kamus Dewan and Kamus komprehensif bahasa Melayu for its treatment of Malay and Romanized Arabic, and an English–Malay dictionary for the English rules. It specifies American English as the convention for English standardization. In practical terms, a choice about spelling can only be applied consistently once the procedure has a target convention. That decision is separate from recognizing that a string is English in the first place.

The word training has two roles in the study. In building the normalizer, the authors use collected writing to discover variants and specify how they will be treated. The normalization decisions are stated as rules and mappings. In the application used for evaluation, an annotated training corpus supplies examples from which a classifier learns to assign grammatical labels. Seeing an observed spelling in the repository and seeing a grammatically labeled token in the classifier’s training are distinct ways for a system to have information about a word.

How the Malay tweet normalization procedure is assembled

The steps in order.

How the Malay tweet normalization procedure is assembledStep 1: Collect tweets containing nonstandard and mixed-language writing1. Collect tweets containing nonstandard and mixed-language writingStep 2: Map observed variants to standard forms2. Map observed variants to standard formsStep 3: Lowercase the text and remove designated noise3. Lowercase the text and remove designated noiseStep 4: Apply conventions for each supported language4. Apply conventions for each supported languageStep 5: Expand short forms and regularize names5. Expand short forms and regularize namesStep 6: Split or simplify selected compound forms6. Split or simplify selected compound formsStep 7: Standardize informal expressions and correct typing errors7. Standardize informal expressions and correct typing errorsStep 8: Retain unmatched forms after the rule pass8. Retain unmatched forms after the rule pass

Preparing the text for lexical rules

The authors first convert the corpus to lower-case, reducing the number of case variants the procedure has to consider. A place name can therefore remain lower-case even after a spelling correction. The change to terengganu illustrates this choice. For proper names, the target preserves the conventional spelling under the pipeline’s uniform casing policy. Restoring the typography of formally edited prose would be a different objective.

The noise rules remove web links, including links that begin with HTTP or HTTPS or with www. They also remove profile mentions that begin with an at sign followed by a username. Recognition of these patterns depends on their form as a whole. The at sign helps identify material linked to a profile, while the beginning of a web address helps distinguish it from surrounding text. These operations remove stretches of text the authors regard as unnecessary to their processing task.

Other cleanup rules cover punctuation, symbols, numerals, standalone letters, and excess spacing. The authors also describe dropping words in Chinese, Korean, or Japanese characters under a rule they label Unicode. The examples indicate that this description concerns those writing systems. Romanized Arabic stays within the supported scope because the relevant words are already written in Roman letters. The paper treats the handling of scripts and the normalization of supported languages as distinct decisions.

Removing leading and trailing spaces and reducing runs of whitespace makes the rest of the input more regular. In a procedure that inspects a vocabulary and applies word-level rewrites, consistency at boundaries helps determine which forms will be examined. Some preprocessing operations also affect the vocabulary indirectly. When a link or mention disappears, any token it contributed can disappear with it. When lower-case spellings are consolidated, the number of distinct strings can fall while the word occurrences themselves remain.

The paper gives an overall sequence and says the rules are arranged to avoid contradictions. The sequence is easiest to understand as an account of the kinds of changes the pipeline performs. The examples also reveal dependencies that a working implementation has to accommodate. A rule that recognizes a special use of a letter must still see that letter. A rule keyed to a hyphen must see the hyphen or work from information retained before it was removed. The paper’s presentation gives the relevant inputs and intended outputs for those cases, while leaving parts of the precedence between rules implicit.

Choosing a standard by language

Once a form is eligible for normalization, its language determines which conventions apply. The Malay rules replace nonstandard spellings with accepted Malay forms. The Romanized Arabic rules regularize words written in the Latin alphabet by reference to the authors’ chosen sources. The English rules apply the selected spelling convention to English words. The procedure is described as normalizing only those languages. It provides no corresponding conversion scheme for other languages.

This organization accommodates a common situation in the development collection. The unit to normalize may be an English or Arabic expression inside a tweet whose surrounding words are Malay. Assigning a single replacement vocabulary to an entire tweet would fail to express the authors’ design. Their rules are organized around the language of the item being changed. For instance, the desired output for tenkiu is thank you. The result remains English, even when the surrounding tweet is mostly Malay.

The paper says that normalization procedures and selected standard forms are applied in sequence to the vocabulary. A vocabulary list is a list of distinct forms, so this description foregrounds the problem of deciding what to do with a form where it occurs. It leaves open the details of how the system assigns languages to ambiguous strings or decides whether the same spelling needs different treatments in different sentences. The examples show decisions for known items, such as the place aliases and expressions of thanks, for which the authors specify an intended output.

Some outputs are already short or informal in appearance. The letter x, for instance, can be expanded to tak, and the authors also give tidak as a possible written form. The compound example taknak is shown with tak in the result. These examples suggest that the study’s idea of regularity can preserve a short lexical form where it gives the tagger a recognizable token. Exactly how the procedure chooses between tak and tidak for particular occurrences is left unspecified.

Expanding abbreviations and normalizing names

The authors group abbreviations, contractions, and acronyms together for processing. These labels distinguish different ways of shortening text. The shared operation is to restore the fuller expression associated with the short form. For example, rm becomes ringgit malaysia. That rewrite turns a compact item into separate words, giving the tagger more explicit material and changing how many positions it has to label.

The negation shortcut x illustrates the same principle at a smaller scale. It carries the meaning of tak in the uses described by the paper. Expanding it is a lexical decision based on that convention. A generic cleanup operation could discard it as a standalone letter, which is why the treatment of meaningful short forms has to be understood together with the noise rules. The paper provides the desired expansion and the general cleanup rule, but it gives no detailed conditions for resolving their overlap.

The proper-name rules address another kind of variation. The authors discuss names of people, places, organizations, and animals as proper nouns. Those in the normalizer are subject to the same lowercasing policy as the rest of the text, with an additional mapping where a known variant needs correction. Their example names tranung, teganu, and ganu as spellings that all lead to terengganu. These strings converge because the repository associates them with the same place.

The distinction between the name’s identity and its capitalization is worth keeping in view. On the paper’s terms, making a proper name standard does not require keeping an initial capital. The spelling change can make the place more recognizable to the classifier, while lowercasing removes a separate feature that might signal a proper name. The experiment examines the net effect of preparation on tagging. The method itself applies the same case policy to names as to other categories.

Handling repetitions, endings, and joined words

The compound-word rules gather several ways in which written material is attached or repeated. Some rules split a single written string. Others reduce repetitions or remove an ending. The paper’s grouping is practical. It concerns strings whose smaller pieces can be treated separately during preprocessing, even though the examples represent different kinds of linguistic structure.

For a repeated expression such as hehehehe, the output is hehe. The transformation retains the recognizable expression and reduces variation in its length. The paper gives other laughter examples in its discussion of interjections. In both cases, the variability comes from the way a writer represents an expressive sound rather than from the introduction of a new object or action into the sentence. A shorter common spelling lets the tagger see the expression in a more consistent form across tweets.

Attached endings receive different treatments. In makanannya, the rule removes -nya to produce makanan. In jomlah, the attached -lah is separated, giving jom lah. The authors also address spellings with -la. These examples show that identifying an ending does not itself decide what to do with it. The selected rewrite determines whether the output loses the ending or retains it as an independent unit available to the tagger. There is no single operation of removing all attached particles.

The procedure simplifies certain forms of reduplication, in which material is repeated. It converts bunga-bunga to bunga, dropping the hyphen together with the repeated part. In kucing2, the numeral marks repetition in the written input, and the output is kucing. General punctuation and numeral removal and these targeted rules can look similar at the character level. The intended treatment of bunga-bunga is more specific because it drops one whole occurrence. In the numeral example, recognizing the attached 2 as part of the pattern helps explain why the result is the single written base.

Another rule separates expressions that have been run together. The example taknak becomes tak nak. Neither part needs to disappear for the text to be made easier to process. The rule restores a boundary that lets each part receive its own tag. It therefore has a different effect on the test input from a rule that deletes a repeated unit or removes -nya. An unchanged number of distinct lexical meanings can coexist with a different number of written tokens after processing.

These rules are perhaps the clearest examples of how the normalizer defines its output for a downstream task. A reader can frequently reconstruct the form from a tweet without explicitly dividing or reducing anything. The classifier sees whichever sequence of tokens the procedure creates. Supplying a boundary can allow it to label components individually. Removing an ending or repetition leaves it with a simpler sequence. The method trades some information in the original wording for a representation the authors expect to be easier to label.

Treating colloquial language and typing errors

For slang, the authors use the conventions of whichever supported language the expression belongs to. They handle Malay colloquial terms for family relationships with mappings to the forms chosen for the repository. Thus kak, akak, akok, and kakok become kakak, while mok and omak become mak. The rule brings known forms together where their written differences reflect informal or regional usage. The description treats these forms as vocabulary items that can have conventional equivalents.

Interjections are words or expressions used, for instance, to convey feeling or represent a pause. The authors cite frequent laughter in the development corpus. The spelling haha occurs 273 times there. That figure counts occurrences of the expression in the corpus. It helps explain why the authors pay attention to writing of this kind. An expressive item can recur frequently enough to matter to the vocabulary a tagger encounters.

The interjection rules map several Malay reactions to the form aduh. The examples include adoh, adoi, adui, haduh, and adeh. Another example brings together English expressions of thanks under thank you, with tq, thank, thanks, and tenkiu among the inputs. These cases involve more than misspelled letters. Full words, shortened versions, and spellings based on sound can occur in the same group if the authors take them to express the same thing in their data.

Typing errors receive a separate description. The paper defines these as accidental mistakes in entering text and says a standard Malay spell-check list is used to correct them. The list provides a resource for standardizing such words, while the paper describes no procedure for searching possible corrections by letter distance or deciding between multiple plausible alternatives. The distinction between a typing error and a colloquial convention matters to the design. A recurring informal pronunciation can have a stable mapping to a conventional form, while an accidental typo need only occur once.

Items that the rules do not transform are left as they stand after the applicable preparation. The scope of the repository and recognition patterns therefore determines which unfamiliar items can be regularized. Manual selection of examples makes it possible to capture variation relevant to this corpus, including the many spellings for beritahu. It also means that a form absent from that work can only be changed if an applicable rule or correction resource covers it. The authors call the approach semi-autonomous because manual work supplies the mappings and rules that the procedure then applies.

Preparing the grammatical tagging experiment

The final part of the method uses linguistic annotation. In this setting, annotation means that a person attaches the appropriate grammatical label to a token. The authors have a fluent annotator label training material using a Malay tag set designed for social media text. Those labeled examples are then used to train a classifier. Its task is to predict grammatical labels for the tokens it is given in the test corpus.

The test preparation proceeds by duplicating the underlying tweet collection. A copy is kept as the raw input described by the authors, and other copies undergo the preprocessing settings examined in the paper. Each prepared version has its own sequence of tokens. When a rule divides a word, the new units have to be labeled. When a rule deletes material, there are fewer units of that kind to label. The human reference must match the representation that the classifier receives.

After the classifier predicts the tags, the annotator checks the results against the intended grammatical labels. The counts the authors report are the number of input tokens, the number of incorrect tags, and the percentage of correctly tagged tokens. They also examine the number of distinct forms in the corpus as preparation proceeds. Those measurements serve different purposes. The token count records the size of the sequence being tested, the error count records the number of disagreements, and the vocabulary count records how many different forms remain available to the tagger.

The paper explains these measurements in words and supplies no mathematical formulas. It also gives no fitted numerical parameters for the normalizer. Its technical specification is the combination of a development collection, known variant mappings, language-specific conventions, and rewriting operations. The grammatical classifier is the trained component of the evaluation. The analysis then asks what changes when versions of the same tweets, prepared in different ways, are passed to a tagger.

Experiments and results

What was held in common across the test sets

The study evaluates the normalizer on the Malay tweet collection used in the authors’ earlier tagging work. Within the new experiment, copies contain the same underlying messages. The researchers vary the preparation of those messages before tagging. This design reduces the chance that differences among the settings simply reflect a change in which tweets were sampled. It also makes it possible to associate different error patterns or accuracy levels with different preparations of the material.

The paper describes preprocessing settings involving punctuation, symbols, numerals, casing, and use of the normalizer. It refers both to initially lowercasing the test text and to lowercasing as a preprocessing stage, while also describing an original version retained for comparison. The comparisons that can be taken from the report concern the respective labeled preparations. The description does not warrant inferring additional details about case in the raw version or an independent casing treatment beyond the comparison the authors describe.

The training data and test data play different roles. The development collection provides evidence about the variations the normalizer is designed to handle, and human-labeled training material supplies examples for the grammatical classifier. The test corpus is the earlier collection used to compare tagging outcomes under different preparations. The result of 97.43% is a score on the normalized version of that test corpus. It describes classifier predictions checked against human labels on the resulting tokens.

The comparison within the new study and the comparison to the earlier benchmark address different questions. Within the new study, changes in preparation show how the tested tagging setup responds when the input text is rewritten. Across the two studies, the normalized results show how the two complete setups performed on their respective versions of the same underlying messages. Differences in taggers and representations are part of the latter comparison.

What the counts measure

A token is an occurrence of a unit presented to the tagger. The same word can contribute repeated tokens if it occurs repeatedly in a collection. The vocabulary, in contrast, counts different forms. Lowercasing can collapse case variants in the vocabulary without deleting their occurrences. Mapping several regional spellings to one form can have the same effect. Removing a mention can reduce the total token count. Dividing taknak into tak nak can increase the number of tokens contributed by that part of a tweet.

The authors count a tagging error when the classifier’s label for a token disagrees with the human reference. Accuracy expresses the share of tokens that receive the correct label in the version being scored. Because rewriting can change the token sequence, the share is computed over the tokens present after that version’s preparation. An error count and an accuracy percentage thus describe the same outcome from different perspectives. The percentage relates success to the size of the test input, whereas the count indicates how many labels were wrong.

These measurements are informative together. A procedure may help by changing an unfamiliar spelling while preserving the position where the tag would be assigned. Another can remove an item that was difficult to score. A split may give the tagger two units it recognizes more easily than their joined form. The tagging metrics capture the performance achieved on the result of these changes. The design does not provide a position-by-position correspondence across all settings, so the aggregate measures do not directly identify which original tagging errors have been repaired.

Vocabulary size is a related diagnostic. The authors use it to assess how much preparation consolidates the input. Its relationship to accuracy depends on which forms disappear or merge. Reducing the number of case variants can give the classifier more consistent input with nearly the same written content. Reducing the variety by deleting material changes the scorer’s input in a different way. A smaller vocabulary is therefore an observation about representation. Its practical benefit in this study is assessed through the accuracy and error measurements.

Accuracy on normalized tweets

The authors report that punctuation removal, lowercasing, and applying the normalizer are the preparation stages that appear most helpful to tagging in their experiment. The full normalization procedure gives their highest reported accuracy, 97.43%, on the resulting test tweets. That percentage is the level of tagging accuracy reached, as opposed to a measured proportion of informal spellings converted correctly.

The earlier study reached 94.6% tagging accuracy on its test tweets after basic normalization. The current paper uses that outcome as the normalized benchmark. Both results are measurements of grammatical labeling on prepared versions of the same underlying tweet collection. Each percentage belongs to the tagger and the preprocessing conditions of its own study.

Part-of-speech tagging accuracy on normalized versions of the Malay tweet test corpus

The current study reports the higher accuracy on its prepared version of the shared tweet collection.

Part-of-speech tagging accuracy on normalized versions of the Malay tweet test corpusEarlier study with basic normalization: 94.6Earlier study with basic normalization94.6Current study with rule-based normalization (this paper): 97.43Current study with rule-basednormalization (this paper)97.43
The numbers
System or settingaccuracy %
Earlier study with basic normalization94.6
Current study with rule-based normalization (this paper)97.43

The abstract also reports an improvement in accuracy of up to 31.8% across preprocessing. That is the authors’ statement about improvement, whereas 97.43% is their reported accuracy at the highest-scoring stage. The abstract does not identify the starting condition or calculation for 31.8% clearly enough to use it as a comparison with the earlier study’s normalized result. The explicit accuracy levels give a firmer basis for comparing the normalized settings.

The paper also reports that the current study has the lowest tagging error count in the comparison of the normalized versions. That supports the direction indicated by the two accuracy scores. Since the token totals can differ, the error ranking and the accuracy ranking are separate observations. Both favor the current system in that comparison, though neither can by itself identify how much of the outcome is due to the expanded set of normalization rules.

Why the raw benchmark is harder to compare

For the earlier study, the paper reports 2,112 tokens in the raw test corpus and 2,089 tokens in its normalized counterpart. The source tweets are common to the two preparations. The counts show that the earlier normalization changed how much material remained for the tagger. The current study reports more raw tokens than the earlier work despite using the same collection of tweets.

The authors attribute this discrepancy to the earlier tagger, QTAG, and its input requirements. They say it imposed restrictions on symbols and punctuation. They also note that the earlier study did not document those restrictions clearly. The current classifier could accept material that the earlier format restricted, leaving it with more tokens in the version described as raw. A shared set of messages therefore did not produce a shared set of scored units.

The authors report raw tagging accuracy above 80% for the earlier work, along with a lower raw tagging error count than in the current study. Those observations describe the earlier system’s performance with the token sequence it accepted. They cannot establish how either classifier would perform on a raw stream whose segmentation and allowed characters matched the other system’s. This difference is especially pertinent when comparing raw with normalized text, since the preprocessing itself affects the inclusion of symbols and punctuation.

A benchmark comparison is still informative under these conditions. It gives the reader a previously reported outcome for Malay social media tagging on the same set of messages and shows that the new setup reaches a higher score on the normalized material. Its scope is the performance of the overall tagging arrangements. A comparison designed to attribute the change exclusively to the normalizer would need the earlier and newer preparation methods evaluated with common input conventions and the same tagger.

How the test vocabulary changed

The study reports 1,028 distinct terms at the beginning of the test preprocessing sequence and 842 at the final stage. The authors describe the latter outcome as a reduction of 18% from the original test vocabulary. These values concern unique forms on the tested corpus, while 2,112 and 2,089 concern token occurrences in the earlier study’s test preparations. Keeping those quantities separate helps explain how relatively few changes to the number of tokens can accompany a more visible change in the number of different spellings.

The repository explains one way the vocabulary can shrink. Several recorded variants can be replaced with one target form wherever those variants occur. Lowercasing likewise consolidates forms that differ in capitalization. Deletions can make particular terms disappear, while splits can replace joined forms with words already present elsewhere. The overall vocabulary measurement reflects all such effects at the stage where it is taken. The final count is thus an outcome of preparing this test corpus, distinct from the size of the repository used to help prepare it.

The authors observe that the decline in vocabulary size accompanies the improvement in accuracy over the preprocessing stages. Their explanation is that fewer unfamiliar variants are left to cause tagging errors. They use unfamiliarity in a specific sense, referring to words missing from the repository or the training corpus. A rewrite can make an item familiar by turning it into a form the tagger has encountered. A reduction in distinct forms alone does not reveal how many of the removed forms were unfamiliar or how many of the retained forms are known to the classifier.

The experiments show a strong downstream outcome under the reported final preparation. They also establish that the way the text is represented affects the size and composition of the test input. The tagging scores and vocabulary measurements together give a concrete account of the final stage. They leave the relative importance of individual mappings, deletions, and boundary changes to the stage analysis and its limits.

What the ablations show

What the stage comparison separates

The paper reports a comparison across preprocessing stages, but it gives no rule-by-rule ablation in which a component of the full normalizer is removed and the remaining procedure is retested. Its comparisons concern settings for punctuation, symbols, numerals, casing, and application of the normalizer. It also offers a vocabulary analysis across the stages and a benchmark comparison with the earlier tagging study. These comparisons give evidence at the level of preparation choices and complete setups.

Punctuation removal and lowercasing stand out in the authors’ account alongside normalization. This matters because the measured benefit of preparing the tweets is broader than the effect of the repository. Removing punctuation can change what the tagger is asked to label and which words are adjacent. Lowercasing can make written variants coincide without changing their number of occurrences. The full normalizer involves those kinds of regularization along with operations such as abbreviation expansion, correction, and segmentation.

The strongest reported final result follows application of the normalizer. That result measures the combined procedure under the study’s staging. The paper does not report separate scores for removing the family-term mappings, disabling the handling of Romanized Arabic, leaving names in their regional spellings, or preserving joined forms. A stage can have a large observed effect even when the contributions of the operations within it differ in size and direction.

The stages can also interact. The same abbreviation can be made recognizable by lowercasing before a lexical rule sees it. Conversely, a cleanup rule can remove a character needed to identify an abbreviation or repeated form. An operation may consequently have a different effect alone from the effect it has after earlier preparation. The paper’s cumulative view is suited to assessing how a sequence of changes performs. It provides less leverage for assigning a fixed contribution to each decision in that sequence.

Symbols and numerals are included among the settings considered in the paper. They receive less emphasis in the authors’ interpretation than punctuation, case, and the normalizer. The report supports that qualitative ranking of the most helpful operations. It does not provide a basis for treating every class of symbol or number as interchangeable. The numeral in kucing2, for instance, has an identified function in the word, while the cleanup description also speaks of removing numerals generally. The tagging comparisons are too broad to show which uses of numerals are best handled by each treatment.

What the vocabulary analysis explains

The reduction in distinct terms provides a plausible account of part of the benefit. Variant spellings fragment the evidence available to a classifier. When several forms become a single familiar form, the representation more closely matches the examples from which labels were learned. Where the tagger uses context, normalization can also make nearby words more familiar. The authors present the movement of vocabulary size and accuracy across the stages as consistent with that account.

The vocabulary count, however, is a measure of distinct surface forms. It cannot indicate by itself whether a disappearing term has been correctly consolidated with an equivalent word, whether it was deleted, or whether it was separated into other units. These routes can all produce the same direction of movement in the inventory. Only some directly convert an unfamiliar item into a familiar occurrence that can be compared before and after the rewrite.

Consider the difference between replacing teganu with terengganu and discarding a profile mention. The first may preserve the place reference while making the written form more familiar. The second removes material from the grammatical task. Both may reduce the number of different strings the classifier sees. If the count falls and accuracy rises after a stage containing both operations, the aggregate result cannot tell how frequently each process contributed to the change.

The same applies to the examples involving grammatical endings. Splitting jomlah preserves both parts, while removing -nya changes what text survives. The effects on tagging could depend on whether the relevant components were represented in training and how the tag set handles them. The paper supplies the intended outputs and the overall performance. It gives no category-specific counts showing, for instance, how many particle splits changed a wrong tag into a correct one.

A stronger explanation of the unfamiliar-word mechanism would track forms the tagger had never seen and examine what happened to their occurrences across the preparations. The study’s vocabulary trajectory is consistent with the authors’ explanation, and the repository demonstrates how consolidation is possible. The analysis uses the decrease in unique terms as its measured diagnostic. It does not quantify the portion of the accuracy change explained by converting previously unfamiliar tokens to known forms.

What the earlier benchmark adds

The earlier study contributes a useful comparison between basic and more extensive processing as they were actually used in the two tagging systems. On normalized tweets, the current setup has the better reported accuracy and the lower reported error count. On raw tweets, the earlier work scores above 80% and has a lower error count in the authors’ comparison. The results show that the ranking of setups depends on which preparation is being considered.

Input restrictions limit the interpretation of this pattern. The earlier and current taggers can segment or admit different material, even from the same underlying tweets. It follows that the raw comparison cannot serve as a clean control whose performance can be used to apportion the later gain between a new classifier and a new normalizer. The final benchmark comparison is evidence about the two systems as tested.

The stage comparison within the current study is more directly relevant to the question of whether preparation helps its classifier. The vocabulary analysis addresses a reason why it might help. The associated fall in distinct forms and rise in accuracy make consolidation a plausible contributor, while the changes in token boundaries and deletions show why the final score cannot identify one mechanism by itself. The paper supports the value of its overall preparation for this tagging task, with the individual effects of its rule families still unresolved.

Limitations

Limits the authors identify

The authors point to the time available for collection as a constraint on the development corpus. They gathered 1,791 tweets with 38,714 words by manually selecting messages that fit the task. The collection supports a repository of observed variation, but the authors describe broader coverage as a continuing challenge. The method can only recognize variants through the mappings and resources it has or through patterns that generalize to the new occurrence.

They propose extending the training corpus with more nonstandard Malay tweets. Their expectation is that collection at a larger scale could improve tagging performance. That is an expectation about further development. The paper gives no comparison in which corpus size is varied while the rest of the procedure is held fixed. The observed performance is tied to the repository and training material used for the study.

The authors also set language boundaries. Malay, Romanized Arabic, and English are the languages the normalizer is designed to regularize. Material in other languages falls outside its lexical rules. This limit is relevant because the collection was assembled from mixed-language writing. The presence of rules for several languages establishes their intended coverage, while the application-level score does not show how performance is distributed among them.

The earlier benchmark has an additional limitation acknowledged in the paper. The format requirements of QTAG affect which tokens occur in its version of the raw test set, and the earlier study did not clearly explain the restrictions. A benchmark using the same messages is valuable, but the paper itself supplies a reason to treat its raw token counts and error totals as system-dependent. The two normalized accuracy figures likewise describe results produced by different complete setups.

Finally, the authors frame the evaluation through a single application. They mention possible use in text-to-speech and refer to other classifier families that could be used to evaluate tagging. The experiments reported here concern grammatical labels on Malay tweets. The proposed wider uses are applications the authors see for the method. They have no corresponding application-specific result in the paper.

Limits visible in the evaluation

The most consequential limit is the distinction between tagging quality and normalization quality. A reference for tagging says what grammatical label a prepared token should receive. A reference for normalization would say which parts of the original tweet should change and what each intended output is. The study uses the first kind of reference. It follows that the reported accuracy does not show the proportion of original expressions rewritten correctly or the proportion that the rules leave unresolved.

A correct grammatical label is compatible with a problematic rewrite. For example, changing a word into a more familiar form could make its category easier to predict even if the transformation loses information about the original expression. Stripping an ending reduces what the tagger has to analyze. The evaluation checks the labels on the resulting text. It gives no independent judgment of whether the original expression’s full meaning has been preserved.

The operations can also change the denominator of accuracy. A classifier tested on a version without certain punctuation, mentions, or symbols has fewer such units to label. Dividing an expression adds units where the raw sequence had one. The comparison therefore measures performance on different representations of the same messages. It cannot establish how much of the gain would remain if every original unit had to receive a label and scores had to be aligned across versions.

Selection constrains what can be inferred from the development corpus. The authors sought tweets with nonstandard language, an appropriate choice when the aim is to encounter variants for a repository. The counts of observed forms are therefore useful descriptions of this collection. They do not show how often the same forms would occur in a broader sample of Malay writing, nor how often a tweet from elsewhere would contain a variant already covered by the repository.

The study uses one earlier tweet collection for testing. The paper provides no second source of messages to establish whether the reported accuracy would recur with other authors, dialect proportions, or patterns of language mixing. It also provides no per-language score showing whether the rules help Malay more than English or Romanized Arabic. Aggregate tagging accuracy reflects the distribution of items in the test corpus. A component can be important to a particular set of users without contributing much to that overall number if the relevant cases are uncommon there.

The vocabulary statistic also has limits as an evaluation criterion. The authors favor preparations that reduce the number of distinct forms, and their tagging results support the most effective preparations on the test collection. Vocabulary size is influenced by both helpful consolidation and loss of material. Using it as a general measure of successful normalization would require checking which distinctions the next task needs. The information needed for tagging can differ from the information needed to recover a message’s expressive detail or to read it aloud.

Limits visible in the rule specification

The paper gives concrete transformations and identifies the resources behind them, which makes the design understandable. Some implementation decisions remain underspecified. Generic cleanup removes standalone letters, yet x is also a meaningful form with its own expansion. Generic removal covers punctuation and numerals, yet the compound rules recognize a hyphen and the numeral in kucing2. If those characters have already vanished, a later operation may be unable to recognize the intended pattern. The paper says the rules are ordered to prevent conflict but leaves the local ordering and exceptions unclear in these cases.

There is similar uncertainty about ambiguity between languages and readings. The method groups decisions by the language to which a word belongs, but the paper gives no detailed procedure for identifying that language in a mixed tweet. It also does not specify when an occurrence of x should lead to tak and when it should lead to tidak. Nothing in the tagging score indicates how often an ambiguous item was encountered, changed correctly, or left alone.

The handling of structures has a related dependency on recognition. A rule that splits a word at an attached string needs to distinguish an actual particle from an identical set of letters that happens to be part of the word. The examples establish what should happen to specific inputs such as jomlah. They do not give enough detail to tell whether the treatment is based on an explicit list, a broader pattern with exceptions, or some combination in all applications. These details matter especially for forms absent from the development collection.

The experimental description is likewise clearer about the evaluation sequence than about every setting of the tagger or how reference judgments were checked. It describes manual tagging by a fluent annotator using a set of labels for Malay social media. It gives no measure of agreement among annotators. The reported accuracy is therefore agreement with the reference judgments used in the study, without a separate estimate of how consistently those judgments could be reproduced.

Taken together, these limits define the reach of the result. The paper presents a corpus-driven set of rules that produces a smaller test vocabulary and supports high grammatical tagging accuracy in the authors’ setup. The extent of correct rewriting, the behavior of individual rules on ambiguous inputs, and the stability of the score across new tweet collections remain open.

What came after

The paper’s concrete extensions are proposals for further work. The authors envisage a larger collection of nonstandard tweets, evaluation with other tagging approaches, and eventual use in applications such as text-to-speech. No documented follow-up result establishes whether those extensions were carried out or how the method performed in them.

Cite

Cite as Siti Noor Allia Noor Ariffin and Sabrina Binti Tiun. 2020. Rule-based Text Normalization for Malay Social Media Texts. 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.2020.0111021

@article{ariffin2020rule,
  title = {{Rule-based Text Normalization for Malay Social Media Texts}},
  author = {Siti Noor Allia Noor Ariffin and Sabrina Binti Tiun},
  journal = {International Journal of Advanced Computer Science and Applications},
  year = {2020},
  doi = {10.14569/ijacsa.2020.0111021},
  url = {https://doi.org/10.14569/ijacsa.2020.0111021}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ariffin-2020-rule-based-text-normalization-malay/