Elamur Research

ThamizhiMorph: A morphological parser for the Tamil language

Paper · 2021 · Kengatharaiyer Sarveswaran, Gihan Dias and Miriam Butt

Summary

A Tamil verb can carry information about when an action happened and about the person, number and gender of its subject. Finding that information requires more than removing an ending. A stem may change when a suffix is attached, several grammatical features may share an ending, and different analyses may lead to the same written word. ThamizhiMorph is an open-source tool for Tamil morphology that works in both directions. It takes a written word and proposes its lemma, the form used to identify it in a dictionary, together with its grammatical analysis. It can also take a lexical specification and generate the corresponding written form.

The authors build the system with Foma, a finite-state compiler. A finite-state transducer records the correspondences between written words and their structured lexical forms. The authors first specify which grammatical pieces can occur together and in what order. They then apply rules for changes in sound and spelling that affect how those pieces appear. A descriptive layer called Meta-Morph Rules lets them state patterns once for a class of nouns or verbs and compile those patterns into entries for Foma. The output records both the grammatical function of a word part and the material that expresses it. When a spelling has several possible readings, the tool can return them together.

On 612 distinct words from a Sri Lankan elementary textbook, ThamizhiMorph returned analyses for 93.3% of the words, while the IIIT Tamil Shallow Parser returned analyses for 95.6%. Among the words each system analysed, ThamizhiMorph recovered the correct lemma for 97.9%, compared with 94.4% for IIIT. The authors report that ThamizhiMorph supplied a correct morphological reading in every textbook case it analysed, while identifying errors separately in lemma recovery. On 3,567 distinct unsplit words from the Tamil Universal Dependencies treebank, the authors report successful analysis for 84.7% and examine failures involving missing vocabulary, spelling problems and compounds.

The work concentrates on inflection, the grammatical variation of an existing word. Its published lexicons, rules, compiled transducers, generated forms and test data make the underlying decisions available for inspection and extension. The evaluations show how well the analyser handles the selected word lists. Choosing the intended reading in a sentence remains a separate task.

Deep dive: ThamizhiMorph: A morphological parser for the Tamil language

ThamizhiMorph uses Tamil grammar rules to analyse and generate words, with tests that show how often it finds an analysis and recovers the correct lemma. · about 33 minutes to read

The problem and its context

What a word-level analysis has to recover

A dictionary supplies a headword, but a sentence typically supplies a form built for a particular grammatical job. The ending on a Tamil noun can indicate its case or whether it is plural. A verb can indicate tense and combine information about the subject in a terminal suffix. An analysis that retrieves the headword gives another program a way to look up the word. An analysis that also recovers its grammatical features gives that program a way to use the form as evidence about the sentence. The paper sets out to supply both kinds of information, along with information about changes within or around the word.

Tamil lends itself in part to this treatment because it is agglutinative. Many forms consist of a base followed by grammatical pieces that recur across words. A description of how the pieces are ordered goes a long way. The harder part is that the spelling does not always expose the boundaries. Joining a stem and a suffix can introduce a consonant, change a consonant already present or produce a composite written character. Some stems vary more extensively across their forms. A useful analysis has to identify the base and its grammatical pieces through those changes. A generator needs the same knowledge to produce the written form that actually occurs.

The paper distinguishes abstract grammatical units, or morphemes, from the morphs that express them. A past-tense morpheme is the grammatical information. The consonant or sequence that realizes past tense in a particular form is its morph. This distinction matters for the kinds of use the authors have in mind. A grammar can use the tense feature even when different verbs express it differently. A reader trying to understand an unfamiliar inflection may also want to see exactly which piece the analysis associates with that feature. Where the written result has been altered by a sound rule, the connection between the morph and the word can itself be worth recording.

Some properties useful to a grammar are available from the lexical entry. The paper uses Tamil's distinction between rational and irrational entities as an example. In the grammatical classification the authors describe, rationality concerns whether an entity is conceived as able to think independently. The classification has consequences for agreement and for the expression of case. It cuts across such everyday distinctions as human versus nonhuman. The grammar therefore benefits from receiving the lexical classification explicitly. The spelling of an individual occurrence is insufficient to determine every such property consistently.

The authors were developing a computational grammar within ParGram, a project that builds grammars with shared feature conventions where the languages permit them. In that setting, a morphological component lets the grammar work with stems and the features supplied by the inflected word. The grammar need not maintain a separate full-form entry for every conjugation. Going in the other direction, a grammar or other application can supply a stem and features and ask for the corresponding form. The authors also discuss language learning and word-level translation as uses of the same information. They cite earlier work in which morphological information was useful in machine translation, including work on unfamiliar words, and point to translation between Tamil and Sinhala as a practical need in Sri Lanka.

Why a new Tamil resource was needed

The resource shortage described in the paper is a shortage of usable computational tools and evaluation data. The authors describe Tamil as having substantial and growing text on the web, alongside regional differences in speech and terminology. Raw text gives researchers material to process, but the paper identifies a separate shortage of labelled data for training and evaluation. A team building a grammar also needs to know what the morphological component recognizes, which distinctions it supplies and how to revise its behaviour. A publication or executable alone can leave those questions difficult to answer.

The authors review a survey that documented 17 Tamil morphological analysis or generation efforts. For 12 efforts from before 2007, the associated publications, programs or data were difficult to retrieve online. Some more recent programs were available in binary form without the datasets. Among these were rule-based efforts devoted to generation. Another effort by Kumar and colleagues used sequence labelling for analysis and generation and reported large training and test collections. The ThamizhiMorph authors could find a sample corpus, but lacked the full material and detailed documentation needed to understand and extend the system for their grammar.

Apertium and XFST had also been used to write Tamil analysers and generators. As the authors describe it, Parameshwari's Apertium work covered categories beyond nouns and verbs, including numerals and nonstandard words. The publication was available, but the rules and data were unavailable to the authors. Lushanthan and colleagues used XFST and worked with transliterated forms because of difficulties displaying Tamil script in the tool. Their reported vocabulary included 2,000 noun stems and 96 verb stems. Here too, the rules and test material remained unavailable. These descriptions establish that Tamil had already been treated with explicit morphological rules. They explain why the new work placed such weight on releasing the ingredients of the analyser in editable form.

Available stand-alone software presented other problems. Atcharam worked with the TAB encoding, and the authors' attempt to convert its available word material to Unicode was unsuccessful. The authors got another Java analyser to run and describe several illustrative failures. It returned no reading for a form of the irregular verb meaning ‘die’. It treated a proper name as a verb and proposed conflicting tense markers. It was also sensitive to input that had yet to be Unicode-normalized. Those examples raised different questions about coverage, the constraints on a proposed analysis, and whether the software recognized equivalent encodings of the same written word.

The IIIT Tamil Shallow Parser was another available system. A shallow parser groups or labels some parts of a sentence without attempting to produce a complete syntactic analysis. IIIT's tool included word-level morphological information, but the authors found no separate account of how that component was built or evaluated. The earlier downloadable program was difficult to run in their setup, and a later Python implementation omitted morphological analysis. The web interface to the earlier system remained accessible and supplied the comparison for the textbook experiment.

The finite-state tradition behind the design

The paper places ThamizhiMorph in a tradition that describes a word at a lexical level and a surface level. The lexical representation identifies a base and the grammatical information associated with it. The surface representation is the word encountered in text. A finite-state transducer can link the sequences of symbols on those levels, so the same relation can be used to look up a written word or generate a spelling from a lexical description. This approach had been used for morphologically rich languages such as Russian and Finnish before its application to South Asian languages.

The regional precedents show different uses of the approach. Bögel and colleagues included transliteration in an Urdu analyser and generator so that it could also be used for Hindi. Their treatment extended to constructions such as reduplication and compounding. The Nepali work cited in the paper organized words into grammatical classes and implemented a pilot analyser and generator with XFST. Rahman's work on Sindhi integrated an XFST component into a computational grammar. The grammar integration makes the Sindhi example particularly close to one of the objectives of ThamizhiMorph.

The authors also review work using machine learning. They mention a Tamil support-vector-machine analyser whose training and test material was unavailable and point to character-level work on Malayalam as a deep-learning example in the Dravidian languages they surveyed. They give the limited availability of annotated data as a reason for choosing explicit rules. The choice also reflects a requirement of their own grammar project, which called for a finite-state morphological component. Foma offered an open implementation and support for Unicode, both important to a project intended for others to run and modify.

The method, step by step

From a grammatical description to an ordinary spelling

In generation, ThamizhiMorph starts with a lexical description of the thing it is to spell. A verb's description can specify the lemma, tense and the agreement features that a terminal suffix expresses. The lexicon and its ordering constraints supply the possible combinations of pieces. Those pieces may give an intermediate sequence that is easy to describe linguistically, even if nobody would write it in that form. The alternation rules convert the intermediate sequence to the written word. During analysis, the transducer is queried in the other direction. The observed spelling gives access to the lexical descriptions that could have produced it.

This division answers different questions at different stages. The lexicon specifies which stems and grammatical sequences the system is prepared to handle. Morphotactics describes what can follow what, including restrictions tied to a class of stems. Alternation rules specify how the chosen sequence comes out in writing. For an intuitive example, the paper uses the English plural of watch. The general plural material is s, while the spelling watches calls for an intervening e. Writing the general behaviour independently of the change gives the lexicon a uniform way to mark the plural and confines the spelling operation to the setting that requires it.

The Tamil examples give the alternation stage more work. When the stem koḷ combines with the past marker ṭ and the agreement ending in koṇṭaan, the stem-final ḷ is realized as ṇ. An analysis has to recover koḷ from the changed spelling, while a generation request for the same past form has to produce the change. A transducer can store that relation along with the relations for cases in which the stem survives unchanged. The relation can also be many-to-one in generation. When it is, an analysis query can legitimately return multiple lexical descriptions for one word form.

How ThamizhiMorph is built and used

The steps in order.

How ThamizhiMorph is built and usedStep 1: Collect stems and assign paradigm classes1. Collect stems and assign paradigm classesStep 2: Describe permitted forms in Meta-Morph Rules2. Describe permitted forms in Meta-Morph RulesStep 3: Define markers and values in JSON3. Define markers and values in JSONStep 4: Generate Foma lexical entries from these descriptions4. Generate Foma lexical entries from these descriptionsStep 5: Compile lexical entries with spelling alternations5. Compile lexical entries with spelling alternationsStep 6: Normalize the input to the transducer6. Normalize the input to the transducerStep 7: Retrieve analyses or generate written forms7. Retrieve analyses or generate written forms

Normalize the script and assemble the lexicons

The first operation on an input is Unicode normalization. Tamil uses a script in which a consonant and a vowel can appear together as a composite character. What a reader perceives as a single unit can involve a consonant character and a vowel modifier in the encoded text. The paper gives tu as an example of a composite. It also points out that input methods can yield equivalent sequences with different encodings. Without normalization, a lookup may distinguish strings that represent the same word to a reader. The preprocessing script converts input to a consistent representation for analysis and generation. This step concerns encoding. The rules governing how Tamil words change when affixes attach are handled later.

The lexicons were compiled before the transducer could be built. For verbs, the authors report a lexicon of 3300 lemmata drawn from contemporary and historical material. The contemporary source was the Cre-A dictionary's list of 369 frequent verbs. That list was based on a web corpus of 7 million tokens and was informed by linguistic expertise. The historical source was Irākavaiyaṅkār's survey, which identified 3124 lemmas and organized them into conjugation classes. The authors retained that entire historical list, including entries they say are absent from contemporary use, because they wanted the analyser to have material for processing older texts as well.

The sources do different work in the design. A list of frequent verbs describes some of the vocabulary a reader is likely to meet in modern text. A historically classified list helps supply broader lexical coverage and gives the authors class information for inflection. Neither kind of source by itself specifies the spelling of every inflected occurrence. In ThamizhiMorph, entries are placed in paradigms, where a paradigm is a set of patterns for the forms of a word or class of words. That organization allows the same rules to apply across entries whose variation follows the same pattern.

The noun collection comprised 80,000 nouns from glossaries, corpora and online databases. A Python script performed an initial clean-up by checking which letters appeared at word boundaries. The authors considered both the restrictions described in Tamil grammar and what they observed in contemporary use. For instance, they say traditional accounts disallow initial r and ṛ, whereas these beginnings occur widely in current material. They consulted corpus examples and amended the analyser to account for such usage. This is a place where the lexicon-building procedure affects what the system treats as an admissible word, quite apart from the rules for attaching case endings.

Adjectives, adverbs and categories such as conjunctions were collected in separate lists. The authors also manually assembled a lexicon of certain complex verbs. They combined an infinitive or a verbal participle from the main verb with a secondary verb. The form of the first component depends on how the construction works. For the modal constructions described in the paper, it is an infinitive followed by a modal auxiliary. For the aspectual combinations, it is a verbal participle joined to the secondary verb. Those entry-building decisions determine which combinations the analyser can look for when a reader encounters the components written together.

Specify the forms that each class can take

The paper gives a template for simple verbs. In the notation below, a plus sign marks the order of successive components. Their combination can involve spelling changes, so it is a statement about structure.

simple verb = root + medial particle + (an) + terminal suffix

The equals sign introduces the description of a simple verb. The root is the verbal base. The medial particle expresses tense or negation in the account the paper uses. Parentheses mark an as optional. It is a euphonic particle, a piece with a role in the sound shape of the word, and the authors suggest that in current verbal usage it can add a polite dimension. In a finite verb, the terminal suffix can carry combined information about person, number, gender and rationality. A finite form is one that can carry the relevant inflection for a clause's verb. The paper also distinguishes nonfinite forms, including the participial and infinitival forms used when building complex verbs.

A template of slots leaves open what goes into them. The authors adapted a classification of verbs, based on tense marking, with 12 classes. Their class assignments allow the same category to be expressed differently depending on the root. In class 12, for example, the past form of naṭa ‘walk’ includes n before the t in the account adopted for the example. So the presence of a past-tense element and a terminal suffix is a statement about what the form expresses. The class-specific rule is a statement about what happens to the written sequence when those elements are combined. The authors also treat the irregular verbs kaaṇ, vaa, saa, taa and vee separately.

The authors implement 260 inflectional forms per verbal lemma in their system. They discuss other inventories of Tamil verbal forms to explain why a count depends on the descriptive purpose and the forms included. An inventory compiled from contemporary texts identifies 254 forms and notes that some verbs will lack some forms. The pedagogical inventory the paper discusses identifies 21. ThamizhiMorph's 260 is the implemented set used for generating and analysing forms. It describes the scope of the specification and leaves room to extend it by applying new rules to the classes for which they are appropriate.

For complex verbs, the authors distinguish the component that contributes the main lexical meaning from a secondary verb that can, for instance, express aspect or act as a light verb. A light verb contributes to the construction while the principal meaning comes from another element. The paper discusses koṭu ‘give’ in this role. In a sequence with several verbal roots, the final verb carries tense and agreement, and preceding roots occur in participial or infinitival form. That tells the analyser where to look for finite inflection, while the lexical entries for complex verbs give it a way to recognize the earlier component. As implemented, the treatment handles joined forms with up to two verbs. When a second verb appears, its role is that of either an auxiliary or a light verb.

For nouns, number and case supply the main grammatical dimensions. The stem is singular by default, and kal is the usual plural marker described in the paper. It can also express honorific usage, as illustrated with the pronoun avar-kal. Case marks a noun's grammatical role or relation. A form can involve an oblique stem, a stem shape used in combination with further material, as well as euphonic increments such as an and in. The oblique can be made by doubling a final consonant or with material such as am, attu or aṭṭu. The paper specifies that the stem can take one oblique, while more than one euphonic morph may occur. The practical consequence is that a parser needs to recognize additional material around the base without counting every such morph as its own case or number ending.

The case inventory implemented here has 9 cases. The authors follow an account in which instrumental and sociative are distinct, where the traditional inventory they discuss has 8 cases including the vocative. The distinction matters to the labels the generator accepts and the analyser returns. The paper also distinguishes suffixes from free words that can express a case-like relation. In its example, a form with a bound marker meaning ‘with key’ has a counterpart using muulam as a separate word. The analyser can label muulam with its lexical category, but its instrumental use in that phrase requires information about adjacent words. The finite-state treatment of the inflected noun handles the bound construction directly.

For nouns other than pronouns, the authors name classes after representative lexical entries. The class is based on how the noun actually changes when inflected. Classes 6 and 7 illustrate why the last written character alone is insufficient to assign it. Both end in the character represented as ṭu but follow different patterns. Pronouns introduce a different reason for making class distinctions. The authors identify 38 pronoun classes, including personal, possessive and interrogative pronouns. Some share rules for changes in sound or spelling, yet require different lexical analyses. Keeping those analyses distinct lets the transducer preserve the identity and features of the pronoun as well as produce the right string.

The noun inventory has 36 inflected forms, covering number, case and external Sandhi positions included in the design. The paper describes how singular and plural nouns take case marking and how forms in the dative or accusative can take external Sandhi markers. Sandhi is a set of changes triggered at a boundary. Internal Sandhi applies between pieces within the word. External Sandhi involves neighbouring words and can leave material at the end of the first written word. The analysis of kalaiyaip in kalaiyaip pidittan, ‘he caught the bull’, illustrates the distinction between what the analyser records and what licensed it. The word bears accusative marking and an added p. The following word's initial sound helps explain that p, and the analysis records it as Sandhi material.

Compile the description into Foma

Meta-Morph Rules sit between the linguistic description and the code that Foma compiles. The authors began by writing the lexical strings themselves. Doing so helped them understand which patterns recurred, but changing the result meant revisiting the details of the Foma entries. The descriptive layer moves repeated decisions into rules about classes and constructions. A rule identifies the applicable class, the grammatical properties of the construction, the order of its pieces and restrictions on particular combinations. For a verb, properties can include being simple, finite and indicative. The rule can then say that a particular euphonic pattern is confined to the past with a specified agreement marker.

The JSON files give those descriptions their concrete values. A rule can refer broadly to tense and allow past, present and future. It can also stipulate past when only that value is licensed. The underlying data can distinguish the shapes used for a feature in different classes. That makes it possible to state a shared ordering pattern at one level and store the different tense markers at another. It also gives corrections an identifiable place to go. Correcting a stored marker value is a change to the description of that value. Introducing a word class with unfamiliar spelling behaviour can still require additions to the orthographic rules.

A Python parser reads the Meta-Morph Rules and turns them into lexical entries for Foma, using the values supplied in the JSON files. In Foma's lexicon component, a path can pair information in a lexical string with the material on the intermediate side of the transducer. The source entries mark boundaries between morphemes. The paper also explains that a percent sign in its example is an escape character, allowing special characters to be represented in an entry. The lexical entries are then compiled with the alternation rules to obtain the link to actual surface forms. This is rule and resource compilation. The corpora and lexicographic material support the choice and organization of vocabulary and patterns, while the paper describes no statistical training stage for the transducer.

The alternations handle several kinds of change. A consonant and vowel can join into a composite written character after concatenation, as in the form ceytaan. The sequence from naṭa to naṭantāṉ illustrates the addition before the past marker. The paper notes that the added material can receive different linguistic interpretations. It can be analysed as Sandhi, or the resulting nt can be treated as the past marker. The rule still has to generate the same spelling, and the analyser's separation of morphs makes the chosen description visible. In koṇṭaan, the attachment changes a consonant of the stem itself. Other forms introduce a glide, y or v, where vowels meet, or include one of the lexically specified patterns for euphonic material.

The treatment of taa ‘give’ shows why the lexicon also needs to keep track of irregular stem variation. The paper gives taa for the imperative, ta as the past stem and taru for forms in the present and future. A lookup for taruvaan can lead back to the lexical identity shared with the imperative even though the observed stem has a different shape. Conversely, the generator needs the lexical entry and the tense specification to choose which correspondence to use. A regular spelling rule concerned only with the joining of neighbouring letters would leave this variation unexplained.

Return lexical information, alternatives and guesses

The output keeps morphological labels and their realizations together. This restates the paper's output schema using descriptive names for the repeated fields.

root | + morpheme = morph | + morpheme = morph | …

Root is the base returned by the analyser. The vertical line | marks a boundary between fields. The plus sign + introduces a grammatical label. Morpheme stands for the abstract category being reported, and the equals sign = associates that category with its morph, the material that realizes it in the analysis. The ellipsis … means that further label and morph pairs can follow. The repeated fields allow a reading to identify several pieces in sequence. A label may bundle the agreement properties carried by one ending, so the fields need not correspond to individual values such as person or number considered separately.

The analyser also supplies lexical properties that the authors want available to a grammar. These include labels for nouns and verbs, finite and nonfinite status, strong and weak verb classes, rationality, and whether a verb is simple or complex. A lexical property such as verb strength can be useful even in a form that gives a reader little direct evidence of it. This broader representation explains the authors' decision to create their own scheme instead of adopting UniMorph directly. The inventory they wanted included Tamil distinctions such as rationality and verb strength, and their output groups features expressed by the same morph. A conversion can subsequently express the information in a different scheme.

Ambiguity remains visible in the output. In the paper's appendix, ceyyum, from the verb ‘do’, has an adjectival-participle analysis and future analyses with singular and plural neuter agreement. The form itself is compatible with those descriptions. A word lookup preserves them so that another process or a reader can decide which fits the sentence. This feature is valuable for understanding the evaluations. Finding a valid analysis in the output is a different achievement from using sentence context to select that analysis.

A guesser also tries to handle words absent from the lexicons. The authors identify common suffixes and associate them with possible analyses for nouns, verbs, adjectives and adverbs. If there is no matching suffix in its list, the guesser's fallback is a nominative noun, where nominative is the case label used for its default noun reading. The available analysis of a word can include both a lexicon-based result and a guessed result. In either case, the guess depends on the form of the word. Its eligibility as an analysis does not establish that it recovers the intended lemma or category.

The authors released the scripts, compiled transducers, lexicons, Meta-Morph Rules, generated noun and verb forms and test datasets. They describe a collection of 1M words generated with ThamizhiMorph. They also built a converter that places its morphological annotations in CoNLL-U, the format used for Universal Dependencies treebanks. Conversion makes the analyses available in a format used for sentence annotation. The question of how all of the analyser's Tamil-specific information should be represented in that format is separate from producing the converted file.

Experiments and results

A comparison on distinct textbook words

The paper reports evaluations on an elementary textbook word list and a word list from the Tamil treebank. The textbook comparison asks how frequently ThamizhiMorph and an accessible Tamil parser return an analysis and how frequently the returned information is right. The treebank experiment gives the authors a different set of word forms on which to examine the coverage of ThamizhiMorph and the reasons a form might be missed. The units are distinct word forms in both experiments. A form repeated in many sentences therefore does not gain extra influence through repetition.

Sri Lanka’s school curriculum includes the textbook. It contributed 612 unique words, with a range of parts of speech, compounds and foreign words. The comparison system was the IIIT Tamil Shallow Parser accessed through its web interface. Its earlier downloadable version could not be made to run by the authors, and the Python version available to them lacked morphology. The interface expected a phrase at minimum, so this was a comparison with the morphological output the authors could obtain through that interface. They used a script to pass the textbook words to the systems.

An example in the paper shows what the comparison had to contend with. In thambi vanthan, ‘younger brother came’, the illustrated IIIT result omits the first word. The authors remark that the omission recurred in their use of the interface and give no explanation for it. The ThamizhiMorph example includes the lexical reading for ‘brother’ and an additional reading from its noun guesser. The paper describes the IIIT interface as lacking contextual selection and also reports that it supplies a single reading when ambiguity matters in the examples discussed in the error analysis. The experiment records the output behaviour observed through that interface, with its phrasing and formatting constraints.

The authors report a count of 585 textbook words analysed by IIIT and 571 by ThamizhiMorph. The first metric counts whether an analysis was found. It includes a returned result before judging the grammatical content or the headword it supplies. On this measure, IIIT covers more of the word list.

Analysis availability on the elementary Tamil textbook word list

The IIIT interface returns an analysis for more distinct textbook words.

Analysis availability on the elementary Tamil textbook word listIIIT Tamil Shallow Parser: 95.6IIIT Tamil Shallow Parser95.6ThamizhiMorph (this paper): 93.3ThamizhiMorph (this paper)93.3
The numbers
System or settingAnalysis found %
IIIT Tamil Shallow Parser95.6
ThamizhiMorph (this paper)93.3

The second comparison looks inside the returned analyses. The paper reports 96.2% for right analysis among successful IIIT analyses. For ThamizhiMorph, the authors state that each textbook word for which it supplied an analysis had a correct morphological reading. They discuss lemma errors separately and explain that ThamizhiMorph failed to recover the correct lemma for 12 words. A reader should consequently interpret the claim about morphological readings using the paper's distinction between the analysis and the lemma it gives. The figures for right lemma use the words successfully analysed by each respective system as their denominator.

Correct lemma prediction among analysed elementary Tamil textbook words

ThamizhiMorph more often recovers the right lemma among the words it analyses.

Correct lemma prediction among analysed elementary Tamil textbook wordsIIIT Tamil Shallow Parser: 94.4IIIT Tamil Shallow Parser94.4ThamizhiMorph (this paper): 97.9ThamizhiMorph (this paper)97.9
The numbers
System or settingRight lemma prediction %
IIIT Tamil Shallow Parser94.4
ThamizhiMorph (this paper)97.9

The distinction between the denominators matters for interpreting the comparison. The analysis-availability chart measures both systems against the full textbook list. The lemma chart conditions on the analyses that each system supplies. Those groups differ. The conditional score describes the reliability of the headwords in a system's own answered cases, and the coverage score describes how frequently a user gets a result at all. The reported results support both the higher availability of analyses from IIIT and the higher conditional lemma score from ThamizhiMorph. The experiment supplies no corresponding end-to-end comparison of the systems' ability to choose the intended reading from sentence context.

The paper gives examples of why an available reading can be wrong. For teriyum, ‘will know’, the IIIT output shows pp as a future marker, although the authors analyse the marking in that form as having no overt morph. That is an error about which material expresses the tense. Other examples involve stems losing material or gaining it. The future form koṭuppeerkal, ‘you will give’, is given an erroneous root koṭupeer. For aaccariyappaṭṭatu, ‘it was surprised’, the cited analysis also gives the wrong stem. These examples explain why checking a label or merely counting returned entries misses important errors in an application that needs to find the lemma.

For ThamizhiMorph, the textbook discussion emphasizes unfamiliar vocabulary and derived forms as sources of gaps. Derivation builds a new word from existing material. Its presence in the textbook means that an inflectional analyser can face a spelling whose root and ending resemble familiar pieces, yet whose derivational structure lies outside the rules it has. The authors also connect the lemma errors to the complexity of the writing system and see a way to address them by adding alternation rules. The examples and diagnoses help locate possible repairs. The paper does not give a new score after making those repairs.

An error study on Tamil Universal Dependencies text

The second experiment uses the Tamil Universal Dependencies treebank v2.5. The treebank has 8,635 tokens from 600 sentences. Before multiword tokenization, the paper counts 3,567 unique words, and it reports 4,055 tokens after multiword tokenization. The researchers chose the list of 3,567 distinct unsplit forms for the evaluation. They cite issues in the multiword and other annotations as their reason for using that list. The setup therefore tests ordinary surface strings as collected from the treebank, with its annotated sentence structure and token splits outside the scoring procedure.

ThamizhiMorph successfully analysed 3,023 of those forms, giving the paper's reported coverage of 84.7%. The authors report 544 unanalysed forms. There is no parallel IIIT run in this experiment. It also supplies no equivalents of the textbook's conditional lemma and right-analysis comparisons with IIIT. The reported success rate refers to finding analyses on the distinct unsplit treebank forms. This is especially important for a treebank, since it can be tempting to read a percentage attached to that resource as agreement with gold feature annotations. The authors chose the less annotation-dependent test.

The largest category for which the paper gives a count is missing lexicon entries, involving 240 words. The authors connect much of that category with differences between Indian Tamil and Sri Lankan Tamil. They also identify unfamiliar acronyms and proper nouns among the gaps. This result shows the importance of the vocabulary that a rule system can bring to a new collection. The ability to apply an inflectional pattern to a known stem and the ability to recognize which stem is in front of it are separate dependencies. A class rule can be appropriate for a form while its lexical entry is still missing.

The treebank also contains spelling problems. The authors cite the spelling used for Ahmedabad and show competing spellings for the word meaning ‘communist’, where they judge one incorrect. Those examples concern the spelling in the input itself. They illustrate a different failure mechanism from the equivalent encodings handled by normalization. A normalization script can put two encodings of the same text into a common representation. It cannot decide, through that operation alone, that a written form is a misspelling of a different string.

The compound cases show how the authors used the errors to extend the lexicon. A noun-plus-verb construction meaning ‘you do not worry’ failed under the original treatment. They added the combined root as a lexical entry. A noun-plus-noun construction glossed as ‘two and a half’ also defeated the analyser and guesser. The authors added such cases as lexical items. A successful entry can give the transducer a path for the specific construction and its relevant inflection. The study does not provide a controlled measure of how broadly those additions would help with unseen compounds.

Working with the treebank also exposed a mismatch between the two annotation inventories. The authors identify rationality, euphonic material and Sandhi as distinctions that they represent and could not find in the treebank's current inventory. They point to the possibility of language-specific features in Universal Dependencies and describe their CoNLL-U conversion tool. A converted morphological analysis might help someone annotate or study those features. The paper does not measure improvements in treebank annotation or in automatic sentence analysis after conversion.

What the ablations show

The paper reports no component ablations, and instead offers a comparison with the IIIT parser, an examination of individual outputs and an analysis of failures on the Tamil treebank.

The textbook experiment helps separate availability from the quality of what is returned. IIIT's higher coverage shows the benefit of counting how often a result is offered, especially for users who would otherwise have to look up an unfamiliar form themselves. Its errors show why coverage cannot stand in for correctness. An incorrect stem can prevent a dictionary lookup, and an incorrect overt tense marker can give a reader the wrong account of the word's structure. ThamizhiMorph's lemma result among answered cases helps quantify one part of that quality, while its examples demonstrate the additional information its output can preserve. The comparison varies entire systems, including their lexicons, rules, annotation formats and interfaces. It therefore gives no estimate of how much any individual design choice contributes.

The ambiguity examples show a capability more directly than the aggregate scores do. The several readings of ceyyum demonstrate that one surface form can lead to several lexical descriptions in the transducer. The example with thambi vanthan shows an output can include a standard analysis alongside a guess. Neither demonstration measures how many extra correct readings the guesser provides across the textbook or treebank. They also leave open how often it introduces readings a reader would have to discard. An example can establish that a behaviour exists in the system without telling us its frequency or its effect on a score.

The treebank inspection distinguishes types of repairs that can otherwise look identical in a coverage statistic. A missing name can be addressed by adding a lexical entry. A regular verb assigned the wrong class may require a change to its class assignment, while a systematic error at a suffix boundary calls for an alternation rule. For the documented compound failures, the authors chose to add lexical entries for combined roots. The relevant evidence is the diagnosis of individual forms and the reported additions. There is no isolated run showing the coverage impact of lexical additions, spelling corrections or changes to compound treatment.

The two datasets also make clear why the experiment is sensitive to source material. The treebank exercise yields lower reported coverage than the textbook exercise, and the authors identify concrete sources of difficulty in the treebank vocabulary and annotations. The data differ in selection, origin and preparation, and the treebank is evaluated for coverage on unsplit forms. The two percentages consequently cannot isolate the effect of regional vocabulary or any other single property. The error inspection supports regional vocabulary as an explanation for many particular missing items. It leaves the share of the cross-dataset coverage difference attributable to that factor unmeasured.

The Meta-Morph Rules are justified mainly through their role in development. The authors describe how writing Foma strings directly made errors laborious to correct and how class-based rules coupled with JSON values simplified adding patterns. That account explains what the additional layer changes in the engineering process. The same morphological choices could in principle be encoded directly in Foma. Since the paper gives no timed comparison or controlled quality comparison, the evidence establishes how the authors structured and used the layer, while the size of its effect on development time and accuracy remains unquantified.

Limitations

Limits the authors state

ThamizhiMorph concentrates on inflection. The authors identify missing derivational formations in the textbook and say they have begun to add derivations case by case. A system with broad coverage of tense, agreement, case and number can still miss a word that has been built by a derivational process. The paper discusses the possibility of using the inflectional resource in later work on both inflection and derivation, but the reported experiments concern the system as described. They provide no evaluation of a fuller derivational treatment.

Complex predication is another stated boundary. The authors describe Tamil constructions with more verbal roots than their implemented joined forms handle. Their implementation deals with joined sequences of up to two verbs in the auxiliary and light-verb cases they describe. They call for further study of the structure and function of complex predicates. The fact that the paper describes longer verbal sequences is linguistic motivation for the design, and the reported system covers the implemented subset. The evaluation does not identify a coverage rate for long or rare complex predicates.

The noun treatment also stops short of several contextual phenomena. The authors are still adding constructions with suffixed postpositions. Certain free forms can mark case in a phrase, but the analyser currently supplies their lexical categories. Identifying a case function in those instances would require examining the neighbouring words, a task the authors envisage for a separate component. The paper also leaves rarely used locative and vocative markers outside this version. These are different reasons for a missing analysis or feature. Some involve a restriction on what the lexicon and rules include, while others involve the amount of context available to the analyser.

The authors explicitly describe the system as returning the possible analyses of a surface form. They propose developing a contextual analyser by combining it with a system for part-of-speech tagging. The tests do not evaluate that extension. The difference matters whenever the same form can instantiate more than one grammatical pattern. The analyser can enumerate legitimate candidates, but the choice that a reader makes in a sentence depends on syntactic and sometimes semantic information outside the word. Equally, the record of external Sandhi in a spelling is distinct from a full account of the conditions that license it between words.

The authors describe the lack of a common Tamil evaluation benchmark as a practical constraint and propose building one. They also discuss future use of the analyser in machine translation, a comparison with byte-pair encoding in that setting and generalization of the Meta-Morph Rules to other South Asian languages. Those are research directions. The evaluations in the paper concern Tamil word analysis and therefore leave the proposed translation comparison, contextual extension and transfer to other languages open.

Limits of the evaluation setup

The textbook and treebank exercises use distinct forms. This gives uncommon forms a chance to influence the score and serves the authors' aim of testing lexical coverage. It gives no direct rate for the analyses a reader would encounter across running text. A commonly repeated word and a word appearing once count alike in a distinct-form evaluation. The study also supplies no breakdown by grammatical category or frequency tier that would establish which kinds of Tamil words are most reliably handled. The cited examples illustrate categories of success and failure, and the aggregate numbers summarize the chosen lists.

Conditional scores require care. Since the two textbook systems leave different sets of forms unanswered, a conditional lemma score does not by itself say how frequently a system delivers the right lemma across the entire list. In addition, the paper separately reports correctness of an available analysis and correctness of the lemma. It does not give a full account of performance when every returned alternative is judged and the sentence serves as the final arbiter. A user considering a dictionary tool, a grammar or an automatic annotator could care about different aspects of those outputs, and the measured quantities cover only some of them.

The IIIT web interface gives the experiment an accessible comparator, but its input constraints and missing first word in the illustrated output limit what can be concluded about the source of the measured differences. The comparison concerns the systems as exercised in the study. Because the authors did not obtain runnable local access to the earlier IIIT implementation, they could not use that route to distinguish an interface issue from a problem in the morphological component. The other Tamil systems in the related-work discussion were described with different resources or test conditions and were never run on the same word list in the paper.

The treebank's unsplit forms make sense for the authors' coverage question given their concerns about annotation. The tradeoff is that the evaluation cannot establish agreement with reviewed gold lemmas and features on treebank tokens. The spelling and annotation issues also make some failures hard to interpret as properties of the analyser alone. A corrected spelling, a new lexical entry and an expanded grammar rule are distinct interventions. The paper provides qualitative evidence for those distinctions, but it reports no coverage on a corrected version of the same test inventory after the interventions.

Generation uses the same lexical-to-surface relation, and the paper documents the release of generated material. The effectiveness tests still concentrate on analysing forms. By itself, a successful search from observed spellings cannot establish how many generated forms would be accepted by speakers across the full inventory. It also cannot show whether the generated set gives a downstream system useful coverage. The paper gives the rules and generated data with which those questions can be investigated, while leaving that kind of evaluation separate from its reported analysis results.

What came after

Kelvi: A Morphological Parser to Support Tamil Literacy (2026) cites ThamizhiMorph and places a Tamil morphological parser in a literacy setting. That purpose connects directly to the earlier paper's discussion of learners who want to identify a root and understand how an inflected form is built. ThamizhiMorph records the material associated with a grammatical feature, so a learner-facing tool and a computational grammar can have reasons to value the same distinction in the output. The citation and title establish the connection in purpose. They give no basis for attributing ThamizhiMorph's lexicons, rules or implementation choices to Kelvi.

TaLK-Corpus: A Regionally Diverse Evaluation Set for Sri Lankan Tamil Speech (2026) is a citing work that puts regional diversity into the design of a Tamil speech evaluation set. The connection is at the level of evaluation coverage. In the earlier paper, the authors found that differences between Indian and Sri Lankan Tamil accounted for many treebank forms missing from their lexicon. TaLK-Corpus concerns spoken Tamil within Sri Lanka, a different evaluation setting from the written word lists used by ThamizhiMorph. Its citation does not establish whether or how it used the earlier analyser to prepare or evaluate the corpus.

Cite

Cite as Kengatharaiyer Sarveswaran, Gihan Dias and Miriam Butt. 2021. ThamizhiMorph: A morphological parser for the Tamil language. Machine Translation.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/s10590-021-09261-5

@inproceedings{sarveswaran2021thamizhimorph,
  title = {{ThamizhiMorph: A morphological parser for the Tamil language}},
  author = {Kengatharaiyer Sarveswaran, Gihan Dias and Miriam Butt},
  booktitle = {Machine Translation},
  year = {2021},
  doi = {10.1007/s10590-021-09261-5},
  url = {https://doi.org/10.1007/s10590-021-09261-5}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/sarveswaran-2021-thamizhimorph-morphological-parser-tamil-language/