Development of Amharic Grammar Checker Using Morphological Features of Words and N-Gram Based Probabilistic Methods
Paper · 2013 · Aynadis Temesgen and Yaregal Assabie
Summary
An Amharic verb can carry information about who acted, who was affected and when the action happened. The same grammatical information may also appear elsewhere in the sentence, where the words have to agree with the verb. A checker that looks only at word order can miss a disagreement even when it correctly recognizes the overall sentence pattern. The authors built an Amharic grammar checker that looks at both the order of word classes and the information encoded inside words. They knew of neither a commercial checker nor a published account of one for Amharic at the time. The technical challenge is central to Morphology.
The checker represents each word by its part of speech, number, person and gender. It takes the word-class labels from the manually annotated Walta Information Center (WIC) news corpus, which uses 31 tags, and uses HornMorpho to obtain information about word forms. For a verb, the representation keeps subject and object features separate. The checker first scores sequences of word-class tags and compares the sentence score with an empirically chosen cutoff. It then uses corresponding frequency estimates to check combinations of word classes and agreement features. These passes compare neighboring groups of words, the units used in an N-gram. A final pass looks up whether a recognized time adverb occurs with the tense of the next verb. The authors distinguish perfective, imperfective, jussive/imperative and gerundive verb forms for this check.
The WIC corpus contains 8067 sentences, of which 7964 were used for training. Testing used the remaining corpus sentences and manually prepared examples containing grammatical errors. Precision measures how frequently a flag was right, while recall measures how many of the actual errors were flagged. On simple sentences, the bigram setting achieved 59.72% precision and 82.69% recall, and the trigram setting achieved 67.14% precision and 90.38% recall. On complex sentences, the corresponding results were 57.82% precision and 65.38% recall for bigrams and 63.76% precision and 67.69% recall for trigrams. Looking at a longer neighborhood helped in both groups, and both settings recovered a larger share of the errors in simple sentences.
The authors identify several weaknesses in the inputs. The corpus includes incorrect tags and misspelled words, and news writing supplies relatively few examples involving the first or second person. HornMorpho handles only some types of verbs and nouns, analyzes adjectives as nouns and leaves adverbs unanalyzed. The authors propose improving the morphological analyzer and developing a parser and a spelling checker. The experiment shows how far a checker can get by combining corpus counts with features extracted from individual words, while the difference between the sentence groups helps explain why the authors wanted access to phrase structure.
Deep dive: Development of Amharic Grammar Checker Using Morphological Features of Words and N-Gram Based Probabilistic Methods
An Amharic grammar checker uses word structure and corpus probabilities to detect errors in word order, agreement and verb tense. · about 32 minutes to read
The problem and its context
What the checker has to recognize
A grammar checker has to decide whether a writer has combined words in a way the language permits. The paper places that task in the context of electronic documents and the demand for software that can process them. It describes earlier checkers as attending to such matters as style, unusual words and sentence patterns, and describes more developed systems as able to handle more complex structures. A checker can also offer alternatives, but the experiment in this paper measures whether the system identifies errors. The distinction between a correct flag and a suitable replacement matters in the wider field of Grammatical error correction & learner language.
The authors present Amharic as a language of broad practical importance in Ethiopia, where it is a working language, a first language for many speakers and a commonly learned second language. At the same time, they describe limited resources for automatically processing it. For a grammar checker, this means that the need for detailed information about word forms meets a shortage of tools that can reliably supply it. The paper reports that the authors were unaware of an existing commercial Amharic checker or a publication describing one. The claim is about what they knew when they undertook the work and belongs in the context of Low-resource languages.
The paper introduces the ordering problem through a short example about John eating bread. In the Amharic version, the word for the person precedes the word for the bread, and the verb comes last. The corresponding example in English places the verb before the object. The authors use the Amharic example to motivate looking at sequences of grammatical categories. Once the checker has recognized categories such as noun and verb, it can assess the pattern independently of the particular person or food named in the sentence.
Order is only part of the task. An adjective describing children can itself be marked for plural number. If the noun refers to a single child and the adjective carries the plural marking, the sentence can still have the expected order of adjective and noun. The category sequence then supplies the same evidence as it would for a well-formed phrase. The mismatch becomes visible when the checker has access to the number feature as well. This example illustrates how the paper connects word structure with Syntax & grammar formalisms.
The distinction also applies to the subject of a verb. The paper gives an example involving a girl and a broken window. The noun that identifies the girl is feminine, while the verb form in the faulty sentence carries masculine subject marking. The checker needs to compare the gender on the noun with the gender associated with the subject on the verb. A tag that merely marks the last word as a verb cannot supply that evidence, even when the surrounding noun and verb tags follow a common pattern.
The object introduces a separate comparison. In another example, children break windows, and the verb carries marking associated with the plural object. The information about the children and the information about the windows belong to different roles, even though a single verb carries both. A useful representation therefore has to say whose number, person or gender it records. This is why the paper devotes attention to how a feature value is stored before explaining how to count feature sequences.
Time agreement raises a different question. A form that the paper glosses as a future action conflicts with the time adverb meaning yesterday in one of its examples. The adverb and verb may each be recognizable, and the placement of the adverb before the verb can follow the expected order. What makes the combination faulty is the relation between the adverb’s time reference and the form of the verb. This motivates a dedicated comparison with combinations found in the corpus.
How much information a word carries
The paper uses the Amharic word for a student to illustrate the range of forms a noun can take. It gives a plural form, forms with possessive information, a form used in an object role and forms with material corresponding to prepositions such as for and from. The identity of the noun is shared across those forms, but the sentence may require different treatment depending on what has been attached to it. For checking agreement, the relevant evidence belongs to the particular Word form in the sentence.
An adjective can likewise carry more information than its basic descriptive meaning. The paper illustrates this with the adjective meaning fast, giving forms that differ in number and definiteness and a singular masculine definite example. These forms motivate storing features independently of the label for the word class. The checker can then ask whether a feature combination is plausible for the classes involved. The paper’s inventory of features for its statistical agreement check is narrower than the range of distinctions its linguistic examples illustrate.
For verbs, the authors distinguish a root from the stems based on it and the forms that can be built from those stems. They illustrate the distinction with the root associated with taking. Some resulting forms change the participant information, some express negation and others change the construction in which the verb occurs. A single form can express a proposition whose English gloss needs a subject and an object as separate expressions. In the paper’s example of someone who will take the speaker, the verb itself gives information that an English reader sees distributed across the translation.
Taken together, the examples explain a design problem. A checker needs a representation compact enough to count repeatedly across a corpus and detailed enough to distinguish a subject feature from an object feature. Counting complete written forms would make the estimate sensitive to all the distinctions bundled into each form. Counting class labels alone would discard many of the distinctions required for agreement. The paper places a representation of selected features between the written form and the statistical checks.
Earlier approaches described in the paper
The introduction distinguishes rule-based, statistical and hybrid checkers. In the rule-based approach it describes, developers write grammatical patterns and the system matches them against the input. This gives the checker a way to encode specific conditions. The difficulty the authors emphasize is the work of identifying and expressing the rules needed across the range of sentence structures, particularly when those structures are complex.
The statistical approach starts from examples in which words have labels for their grammatical categories. It estimates which sequences are common and uses unusual sequences as evidence of an error. The authors describe a practical weakness of this approach. A low frequency can tell the system that something looks unusual without giving a reader a specific explanation of what went wrong. The distinction between recognizing a pattern and identifying its grammatical cause is important to the paper’s use of Part-of-speech tagging.
Hybrid systems, as the paper presents them, combine evidence from statistical patterns with the specificity available from rules. The introduction cites work on checkers for English, Swedish, German and Arabic to situate the Amharic project. The cited Swedish work by Arppe is one example of prior development for another language. The authors use this literature to describe the available approaches and the gap they saw for Amharic. Developing a grammar checker for Swedish
The Amharic checker uses corpus frequencies for order and for selected agreement features, and an explicit search and lookup procedure for the adverb check. The paper therefore gives corpus evidence different jobs. Frequency estimates grade the plausibility of tag and feature sequences. The adverb inventory supplies combinations that the checker can look up directly. Both depend on examples in the corpus, but the procedure that turns those examples into a decision differs.
The method, step by step
From words to feature records
The checker works from a sentence’s words in their original order. It associates each word with a grammatical class and obtains morphological information about the form. The class label answers a question such as whether the word is being treated as a noun or a verb. The morphological features answer questions such as whether the form is singular or plural, or which person it marks. Training uses these representations to build inventories of recurring patterns. Checking then uses the inventories to assess new sequences in the same representation.
From annotated sentences to grammar checks
The steps in order.
The representation has four slots. The first holds a part-of-speech tag from the corpus inventory, which has 31 types. The tag serves in the order check and in the feature checks. Keeping it in the agreement representation allows the same feature value to carry different implications when attached to a noun, an adjective or a verb. The source of these labels in the described setup is manual Linguistic annotation.
The next slot records number. A noun or adjective can receive P for plural, S for singular or U for unknown. A verb can carry a feature for each of its subject and object. The paper writes SP^OS for a plural subject with a singular object. In this notation, the first S identifies the subject, P gives its value, O identifies the object and the final S marks the object as singular. The caret joins the role-specific parts into the value stored for the verb. Context determines whether an S identifies a role or a number value.
The person slot distinguishes the speaker’s person, the addressee’s person, third person and unknown. Its labels for nouns and adjectives are P1, P2, P3 and PU. The verb representation again separates the roles. SP2^OP1, for example, records second person for the subject and first person for the object. The feature value describes both roles in their assigned order, so a reversal of the two persons would be a different value in a frequency count.
The last slot holds gender. A noun or adjective can be recorded as masculine, feminine or unknown, with M, F or U. For a verb, SM^OF records a masculine subject and a feminine object. The order of the two parts and their role labels serve the same purpose as in the number and person slots. They make it possible to retain a distinction that would disappear if the representation recorded only that masculine and feminine marking occurred somewhere on the verb.
The paper’s example of the word for a masculine president illustrates the noun pattern. Its record contains the noun tag, singular number, third person and masculine gender. The example verb, glossed as a woman reaching him, has singular values in both roles and third person in both roles. The gender values distinguish its feminine subject from its masculine object. These examples also show why keeping a feature can be informative even when its values happen to agree across roles in a particular form. The slots are intended to work across forms in which the values can differ.
HornMorpho supplies morphological analysis. The paper says that records are constructed automatically for the corpus, with the class slot supplied by the corpus tags. These sources make different contributions. The corpus tag provides the word class even where the analyzer’s treatment of a form may be more limited. The analyzer is needed for the feature values that the authors want to compare across words. A problem in a tag can still affect both the sequence of classes and each stream in which a feature is paired with that tag.
The four-slot record supports the frequent comparisons in the first two checks. Tense is handled separately when the checker encounters a time adverb. This division matters for interpreting the method. Though the paper motivates the checker with Amharic words that can express many features at once, it does not put all of that information into every statistical pattern. It extracts particular views of a word for particular checks.
Learning probabilities for word order
The first statistical check uses only the class labels. During training, the procedure reads the annotated sentences and extracts sequences of adjacent tags of the chosen length. In a bigram, a tag is counted together with the tag that precedes it. In a trigram, it is counted with the preceding pair. The comparison is between the number of times the full group occurs and the number of times its opening context occurs. This yields the frequency of the final tag relative to the occasions on which that context was available.
pₜ(wₙ | w₁ w₂ … wₙ₋₁) = count(w₁ w₂ … wₙ₋₁ wₙ) / count(w₁ w₂ … wₙ₋₁)
Here pₜ is the estimated conditional probability for tags. w denotes a part-of-speech tag, and its subscript gives its position in the group. n is the group length, wₙ is the final tag, and w₁ through wₙ₋₁ form its context. The vertical bar reads as “given,” the ellipsis represents intervening tags in sequence, and n₋₁ in the subscript denotes the position before n. count is the number of occurrences of its argument in the training corpus. The equals sign gives the estimate as the numerator divided by the denominator, with / denoting division. Parentheses group the arguments of the probability or count.
The denominator makes the estimate specific to the context. A verb tag, for example, may be common across the corpus and still be uncommon immediately after some particular tag sequence. The estimate asks about the verb tag on the latter occasions. A trigram can distinguish two contexts that end in the same tag if the earlier tag differs. In that case, a bigram pools the occasions into the same preceding-tag context. This is the statistical difference the experiments later test.
The authors calculate probabilities for bigrams and trigrams and store the resulting patterns and values. In checking a sentence, the checker extracts its tag sequence and retrieves the values for the contexts it encounters. The paper combines the factors by multiplication.
pₛₜ = ∏ᵢ₌₁ⁿ pₜᵢ
Here pₛₜ is the score for the sentence’s tag sequence, and pₜᵢ is the tag probability used at position i. The equals sign assigns the product to the score. The symbol ∏ means multiplication of the factors across the indicated range. Its lower bound starts at i = 1, and its upper bound is n, which in this formula denotes the number of tags in the sentence. That use of n differs from the preceding formula, where it specified the length of a local context plus its predicted tag.
Each factor provides evidence about part of the sequence. A particularly low factor can reduce the whole product even when the other contexts are common. The paper treats higher products as evidence of a plausible order and lower ones as evidence of an unlikely order. An empirically chosen threshold supplies the boundary for the decision. The local probabilities are trained from counts. The cutoff is a separate choice about how much evidence is needed before the system treats a sentence pattern as suspect.
The product provides a score for the sequence in the representation the checker uses. Its inputs are counts of tags, so the evidence concerns the occurrence of those tags in context. A sentence may use recognizable noun and verb sequences while carrying the wrong gender or person on the verb. The score from this pass would have the same inputs for both versions if the tags were unchanged. The next pass is designed to see that additional difference.
Learning probabilities for agreement
For agreement, the checker makes separate sequences of pairs from the word records. One pairs each part-of-speech tag with its number value, another pairs it with its person value, and another pairs it with its gender value. A verb’s value in one of these sequences can still contain both role-specific components. Thus the number stream can distinguish a verb with plural subject marking and singular object marking from a verb with the reverse combination, even when their word-class tags are the same.
Pairing the value with its class serves a grammatical purpose. Singular on a noun is a property of that noun form. Singular on a verb in this representation belongs to a subject or object role marked by the verb. The category tells the procedure what sort of value it is counting, and the role marker, where present, keeps the different interpretations of the verb’s feature apart. The combined pair is the unit that the estimation procedure counts.
pₐ(wₙ vₙ | w₁ v₁ … wₙ₋₁ vₙ₋₁) = count(w₁ v₁ … wₙ vₙ) / count(w₁ v₁ … wₙ₋₁ vₙ₋₁)
Here pₐ is the conditional probability for the agreement feature being checked. At any position, w is the part-of-speech tag and v is the value of the selected feature, with matching subscripts indicating that they belong to the same word. n is the local group length, and wₙ vₙ is the final pair in the group. The pairs from w₁ v₁ through wₙ₋₁ vₙ₋₁ make up the preceding context. The ellipsis represents intervening pairs, while the vertical bar means “given.” count measures occurrences in the corpus, the equals sign specifies the estimate, and / divides the count of the full pattern by the count of its context. Parentheses group each argument.
The procedure is structurally similar to the order check. What changes is the event whose probability it estimates. The order pass asks how often a particular tag comes after a tag context. The agreement pass asks how often a particular tag with a particular feature value follows a context in which the preceding tags also carry the selected feature. For an adjective and a noun, this lets the number stream distinguish a plural adjective followed by a plural noun from the same adjective followed by a singular noun.
The relevant evidence can be indirect. A count is evidence that a combination appeared with some frequency, and its usefulness depends on whether that frequency reflects the agreement requirements of the language. The procedure does not first identify the grammatical subject of each verb through a phrase analysis. It retains the verb’s subject and object marking and uses the neighboring pairs as context. An agreement relation within that neighborhood has a chance to affect the score because the features of the words involved can appear in the same counted pattern.
The paper stores the agreement estimates for use during checking and gives a product for the sentence-level agreement score.
pₛₐ = ∏ᵢ₌₁ⁿ pₐᵢ
Here pₛₐ is the sentence-level agreement score, and pₐᵢ is the agreement probability used at position i for the pattern under consideration. The equals sign assigns the product to that score. The symbol ∏ multiplies the terms from the starting index i = 1 through n. In this product n is the endpoint of the sequence over which those agreement factors are multiplied. The subscripts on pₛₐ and pₐᵢ distinguish the sentence score from the local probability.
A low value can reflect a rare feature pattern even if the class sequence is familiar. Conversely, a common context and common feature combination support an agreement judgment. This is useful for the kind of example where replacing a correct verb form with a form marked for the wrong subject leaves the order of the classes intact. The distinction also explains why an inaccurate feature analysis can matter. The corpus statistics are applied to the resulting feature record, so they can only assess the pattern that the analysis has made visible.
The paper gives the feature pairings and the product, but it does not describe in comparable detail how separate indications for number, person and gender are combined into the final report. Its account is most precise at the level of what is counted and how those counts give local probabilities. That is enough to see how the agreement pass differs from the tag pass, while leaving implementation choices about the joint decision unclear.
Checking a time adverb against a verb
The last check starts from a recognized time adverb. The authors describe Amharic adverbs as usually preceding the verbs they modify. Other words can occur between an adverb and its verb. The procedure therefore looks for the next verb in the sentence, even when the immediately following word belongs to another class. The simplifying assumption is that this next verb is the one to check against the time expression.
During preparation, the authors extract associations between time adverbs and the tense categories from the corpus, and store those associations for lookup. The categories in the paper are perfective, imperfective, jussive/imperative and gerundive. They are the distinctions the procedure uses when it compares a verb with a time adverb. The checker identifies the tense of the following verb through morphological analysis when it encounters an adverb in the stored set.
A stored association supports the combination. An absent association leads the checker to report the construction as incorrect. In the paper’s example with yesterday, the form referring to a completed breaking event makes the intended temporal relation easy to see. The future reading does not fit that example. The algorithm encodes the distinction through a lookup of the adverb and verb category, so it can reach a decision even when other words intervene.
This procedure differs from the earlier passes in its treatment of distance and in the role of the corpus. The tag and feature passes use fixed-length neighborhoods and multiply probabilities. The adverb pass searches until it finds a verb and checks the resulting combination against the stored patterns. The authors give the small number of Amharic adverbs as their reason for treating this agreement separately. The procedure still relies on what appears in the corpus, this time to determine which combinations are admitted by the lookup.
Experiments and results
What the system was trained and tested on
The annotated data came from the Walta Information Center news corpus. The paper reports 8067 sentences and assigns 7964 to training. It describes the test portion as the remaining corpus sentences. It also uses manually prepared grammatically incorrect sentences so that the experiment includes examples on which the checker can be expected to raise an error. The paper gives the origin of each source of test material, while its main results are grouped by sentence complexity.
The corpus serves several purposes in the design. Its tags supply training sequences for word order. Its analyzed word forms supply the feature pairs for estimating agreement. The corpus also provides the time-adverb associations for lookup. An annotation problem can therefore have consequences beyond the single item in which it occurs. A wrong tag included in the training data can make an unusual sequence look more frequent, and pairing that tag with a feature carries the same error into the agreement statistics.
The manually prepared errors make it possible to ask a different question from whether the checker accepts sentences from the news corpus. For an erroneous sentence, the evaluator can check whether the intended mistake is recognized. For a sentence or construction judged acceptable, a flag can count against precision. The experiment needs both actual errors and judgments about the flags to distinguish a system that finds errors reliably from one that frequently raises alarms. The paper does not itemize the contribution of each source to the reported test groups.
The main comparisons use simple and complex sentences and bigram and trigram settings. The bigram is the shorter-context comparison within the authors’ method. It uses the immediately preceding tag or feature pair as context. The trigram can use the preceding pair of such units. The paper discusses earlier checkers as background. The test results compare settings of the Amharic checker, so there is no published score in this experiment for a separately implemented rule-based checker or another Amharic system.
What counts as success
The evaluation uses precision and recall. Both start with errors that the checker flagged correctly. Precision compares those successful flags with all the flags the checker issued. Recall compares those same successful flags with all the grammatical errors judged to be present. A false alarm lowers precision, while an error left unflagged lowers recall. These measures answer different questions about the same behavior.
precision = (C / F) × 100%
C is the count of correctly flagged errors. F is the total count of flagged errors, including incorrect flags. The equals sign defines precision, / divides C by F, and the parentheses group that fraction. × denotes multiplication, and 100% expresses the result on the percentage scale.
recall = (C / E) × 100%
C is again the count of correctly flagged errors. E is the total number of grammatical errors in the test material. The equals sign defines recall, / divides C by E, and the parentheses group the fraction. × denotes multiplication, and 100% expresses the result on the percentage scale.
A reader deciding whether to trust a warning would be interested in precision. A reader asking how thoroughly the checker inspects their writing would be interested in recall. The paper reports higher recall than precision in each main setting, with the two measures answering those separate questions. The published percentages can be read directly in that form. The paper does not give the underlying counts for each setting, so the results do not show how many additional flags or correctly detected errors produced a change between settings.
The main test results
Precision on simple and complex Amharic test sentences from the WIC and prepared test material
Trigrams achieve higher precision for both sentence groups.
The numbers
| System or setting | precision % |
|---|---|
| Simple sentences, bigram | 59.72 |
| Simple sentences, trigram (this paper) | 67.14 |
| Complex sentences, bigram | 57.82 |
| Complex sentences, trigram | 63.76 |
Recall on simple and complex Amharic test sentences from the WIC and prepared test material
Trigrams recover a larger share of errors in both groups, and recall is higher on simple sentences.
The numbers
| System or setting | recall % |
|---|---|
| Simple sentences, bigram | 82.69 |
| Simple sentences, trigram (this paper) | 90.38 |
| Complex sentences, bigram | 65.38 |
| Complex sentences, trigram | 67.69 |
The simple-sentence results favor the trigram on both measures. Precision is 59.72% with the bigram setting and 67.14% with the trigram setting. Recall is 82.69% and 90.38%, respectively. At the settings used in the experiment, the longer context is associated with both a larger share of correct flags and a larger share of actual errors detected. Each claim refers to the corresponding denominator, so the comparison does not require knowing whether the longer context produced more flags in total.
The same direction holds for complex sentences. Their bigram results are 57.82% precision and 65.38% recall. Their trigram results are 63.76% precision and 67.69% recall. Complex sentences have lower reported precision and recall than simple sentences at each context length. In particular, the gain from the trigram does not bring complex-sentence recall up to the level reached by the bigram on simple sentences. This is consistent with the authors’ view that the complexity of the structures matters independently of the choice between the two window lengths.
The simple-sentence trigram setting has the highest reported value on each measure. That identifies the best-performing combination in the table, including the sentence group on which it was measured. The sentence group is a property of the test material, whereas context length is a setting of the checker. Treating both as properties of the system would obscure the more useful comparison, which is what happens when context length changes inside a sentence group.
The results also show why a single measure would give an incomplete account. The simple-sentence trigram recall indicates that the checker finds a large share of the errors the evaluators expect it to find in that group. Its precision shows that receiving a warning is a less reliable experience than that recall figure alone might suggest. On complex sentences the checker recovers a smaller share of actual errors. A reader assessing which kinds of writing are likely to benefit from the system needs both pieces of information.
Detection by error type
The authors also organize results by the grammatical problem being detected. Their categories cover word order, disagreement in number, person and gender, adjective–noun disagreement, and adverb–verb disagreement. This division reflects the design of the checker. An order problem is suited to the tag pass, while distinctions such as the person marking on a verb require feature information. Adverb–verb disagreement is addressed by the dedicated temporal lookup.
The overall precision and recall comparisons have clearly identified rows and metric values. The category results do not give a clear correspondence between every listed error and its detection rate, so a numeric ranking by error type is unwarranted. The prose discussion also moves from a claim about sparse person marking to a reference to number disagreement. That wording leaves the quantitative support for the claim about person coverage uncertain. The authors’ observation about the distribution of persons in the corpus can be understood separately from the unclear attribution in that discussion.
This distinction matters because the overall table pools behavior across errors. A stronger result for a trigram on a whole sentence group cannot tell the reader whether the gains came from word order, feature agreement or different opportunities to apply the checks. Category analysis is the natural place to look for that explanation, but a reliable account would need clear mappings between categories and rates, along with the relevant test counts and settings. The overall precision and recall values remain interpretable by themselves.
What the ablations show
Context length is the tested component choice
The paper reports no component-removal ablation, but it offers a comparison of bigrams and trigrams, a comparison across sentence complexity, and an analysis by error type.
The context-length comparison is the closest the experiment comes to isolating a design choice. Both settings use corpus counts in the same general way. One estimates a word’s tag or feature pair with a shorter preceding context. The other adds the earlier unit. Since precision and recall both rise within each sentence group in the reported experiment, the additional context supplies evidence that was useful at the operating settings the authors chose.
The authors explain the result through the position of the head of an Amharic phrase. A head is the word around which the phrase is organized. In the authors’ account, the head of a noun phrase, adjective phrase or verb phrase is at the end. Modifying adjectives can therefore occur in a sequence leading up to a noun, and the words that supply the features marked on a verb can precede that verb. With a trigram, a head at the end of a local group can be evaluated against a longer stretch of the preceding phrase. With a bigram, the conditioning evidence ends after the immediate predecessor.
Consider a noun preceded by a sequence of adjectives. The bigram ending at the noun sees the adjective immediately before it. The trigram ending there can retain the other adjective as part of the conditions under which the noun appears. Whether that extra context is informative depends on what the corpus contains, but the extra context gives the estimator a way to distinguish patterns that the bigram maps to the same event. The same principle applies to a verb preceded by words expressing or modifying its arguments.
This argument gives a plausible reason for better local predictions. It remains an explanation of the observed comparison. The paper does not report measurements confined to particular head-final constructions, or examples counted by how far a head is from the word with which it agrees. The test therefore supports a general benefit from the longer context on its sentence groups. It does not quantify how much of the benefit is specifically attributable to head position.
A longer context can also divide the evidence among more distinct patterns. Contexts that were pooled together in a bigram are divided in a trigram according to the earlier tag or feature pair. That division lets the checker distinguish constructions it previously treated alike, but the resulting estimates depend on how often each more specific pattern occurs. The results show that the division was worthwhile in the reported comparison. The experiment ends at trigrams, leaving the behavior of other context lengths open.
Sentence complexity suggests a structural limit
Simple and complex sentences are different test groups. Their comparison shows that both settings perform better on the simple group according to the reported precision and recall. The authors connect the result to the more elaborate phrase structure of complex sentences. A fixed window can span only a limited amount of wording. A grammatical relation in a complex sentence may require knowing which words belong together, including cases in which nearby words belong to different structural units.
The adverb check illustrates one way in which a hand-specified relation can reach beyond adjacent words. It searches for the next verb and can skip intervening items. That helps under the paper’s assumption about what a time adverb modifies. The statistical checks use a different notion of context, based on the local sequence. A change from a bigram to a trigram extends that sequence while retaining the same general representation of the sentence. The authors’ proposal to obtain hierarchical phrase structure addresses a different problem from choosing how far the local window extends.
The difference between the sentence groups supports examining structural explanations. It cannot identify structure as the sole cause, because the paper does not report test sets matched on error type, length and vocabulary. For instance, a group can be harder if it contains more examples of an agreement pattern with poor training coverage. The reported data do not show how much of the difference comes from such changes in composition. The authors’ account of phrase structure is consistent with the evidence, and the test grouping leaves room for other effects.
What the comparisons leave unresolved
The agreement representation is central to the design, but the experiments do not take it away and rerun the system on the same sentences. An order-only run could help separate what is detectable from class sequences from what requires number, person or gender. Further runs could measure the contribution of each agreement stream or of the time-adverb lookup. The paper gives the reader reasons to expect each source of information to help on particular examples. It does not provide experimental estimates of their separate contributions.
The precision and recall results similarly do not isolate the quality of HornMorpho or the corpus tags. Both context settings depend on these resources. A stronger trigram result can coexist with many failures caused by misanalysis upstream. The examples and the discussion identify where those failures can enter the system, while the main comparison measures the checker with those inputs in place. The evidence for choosing trigrams is therefore more direct than the evidence for any particular explanation of the remaining errors.
Limitations
Limits the authors identify
The authors report finding wrong grammatical labels and misspelled words in the WIC corpus. They corrected some faulty tags manually and were unable to correct all of them. Wrong tags can teach the checker that a pattern is ordinary when the apparent pattern is due to annotation. They can also obscure occurrences of a legitimate pattern, since a correctly formed sentence can contribute an incorrect sequence of labels. In this design the observed sequence is the basis for the estimate, so annotation quality directly affects what the checker learns.
Spelling and tagging are related problems for the system but affect different inputs. A tag error changes the grammatical class recorded in the sequence. A misspelling changes the written form on which morphological analysis operates. Even a correct class tag leaves an agreement check short of evidence if the analyzer cannot recover the relevant features. The authors report that they knew of no Amharic spelling checker that could address the problem at the time. They identify spelling support as part of the language infrastructure the checker would benefit from.
The discussion also emphasizes the genre of the corpus. News articles mostly discuss people or events in the third person, leaving relatively few examples of forms involving speakers and addressees. A corpus count for such a pattern draws on fewer examples even when the construction is valid. That affects prospective coverage of person agreement. The paper’s later reference to number disagreement does not establish a measured effect for person, so the domain explanation is best understood as a consequence of what the authors observed in the training text.
HornMorpho imposes another limit. In the authors’ account, it handles only some types of nouns and verbs, treats adjectives as nouns and does not analyze adverbs. The checker uses a corpus tag as well as an analysis, so a class label may still be available when the analyzer handles the form imperfectly. But agreement depends on the values that the analyzer supplies. The temporal check avoids requiring a morphological analysis of the adverb itself by recognizing it through the stored inventory. It still needs a usable analysis of the selected verb.
The authors also identify phrase structure as a limitation on the use of short local sequences. Their proposed improvement is to use an analyzer that can organize the sentence into phrases at different levels and to perform checks with that organization available. In their reasoning, this would make it easier to associate the right words within a complex sentence. The proposal concerns hierarchical Parsing.
Limits visible in the experimental setup
The order decision treats a low corpus probability as evidence of a problem. A rare construction can be well formed, which makes frequency an imperfect guide to validity. An unusual but legitimate combination may receive a low score because the news corpus gives it few opportunities to appear. An incorrect construction can receive more support than it deserves when the training annotations contain errors. The paper’s use of a threshold accepts a degree of uncertainty in this evidence. Its precision and recall measurements give the outcome for the test material used.
The product also raises a question about length. Its factors are probabilities, so adding more factors to a product can lower a raw sequence score even when every additional local context is plausible. The paper gives its full-sequence products and says a threshold was chosen empirically. It does not specify a comparable score scale across lengths or describe whether the cutoff accounts for them. Accordingly, the difference between sentence groups cannot establish how much came from the grammatical complexity of their phrases and how much might have come from the way the scores behave over the sequences being compared.
The count formulas leave questions about unseen contexts. If the denominator context is absent from training, the raw ratio cannot supply a probability. If the context was observed but the full pattern was absent, the raw numerator is zero, which can bring the whole product to zero if used directly. The paper does not explain whether the checker supplies estimates for unseen patterns by smoothing the counts, falls back to a shorter context, or follows another convention. That choice matters particularly when the sequence includes a rare person value or a specific combination of verb features.
The empirical threshold is another point at which implementation detail affects the result. The paper identifies how the score is formed and describes the cutoff as empirically set. The threshold values and a separate tuning protocol are unspecified. A reproducing reader can learn what kind of evidence the method compares but cannot recover every operating decision from the formulas and reported results. Precision and recall describe the resulting operating points, leaving their sensitivity to other cutoff choices unmeasured.
There is a related limit at the point where the checker receives its tags. The experiment begins from a corpus with manual word-class annotation, and the method obtains the tag slot from that corpus. A checker used on arbitrary raw documents would need a way to supply such tags for words in the new text. The reported evaluation does not separately establish how automatically assigned tags on raw input would affect the results. That difference matters because the tag is used in the order check and in every feature pairing.
For the adverb check, there are two distinct routes to error. The nearest following verb may be the wrong one to compare if the structure departs from the authors’ usual pattern. Even when the checker chooses the intended verb, the stored combinations come from the corpus and may fail to cover a permissible use. The method section describes the usual relation and the lookup decision. The experiments provide no separate evaluation of verb selection and coverage of the inventory, so those mechanisms cannot be assigned separate error rates.
The test design establishes performance on held-out news material supplemented with prepared errors. The paper does not give the sizes of the simple and complex test groups, the shares drawn from the two sources, or the number of errors supporting each main precision and recall value. It also does not describe the process of constructing the incorrect sentences in enough detail to establish how closely they resemble naturally occurring mistakes. The reported figures apply to this test arrangement. Their transfer to spontaneous writing, different genres or domains with more direct speech is unmeasured.
Finally, the evaluation addresses detection. A correctly flagged error can still leave a writer uncertain about which relationship is at fault and which replacement would be appropriate. The study reports no measurements of the accuracy of suggested corrections or of how readers interpret warnings. Its contribution is the design and evaluation of the checks for order and agreement. Further evidence would be required to assess the broader proofreading experience the introduction describes.
What came after
Follow-on studies using this checker are undocumented in the record of its reception. The paper itself sets out the next technical steps it envisages. A better morphological analyzer would increase coverage of the word forms that supply agreement evidence. A spelling checker would address errors in the written input. A hierarchical parser would let the checker compare forms within the phrase structures to which they belong. These are proposed developments arising from weaknesses the authors observed. The experiment tests the checker with its existing resources and local contexts, leaving the effects of those proposed developments unmeasured.
Cite
Cite as Aynadis Temesgen and Yaregal Assabie. 2013. Development of Amharic Grammar Checker Using Morphological Features of Words and N-Gram Based Probabilistic Methods. Proceedings of the 13th International Conference on Parsing Technologies (IWPT 2013).
@inproceedings{temesgen2013development,
title = {{Development of Amharic Grammar Checker Using Morphological Features of Words and N-Gram Based Probabilistic Methods}},
author = {Aynadis Temesgen and Yaregal Assabie},
booktitle = {Proceedings of the 13th International Conference on Parsing Technologies (IWPT 2013)},
year = {2013},
url = {https://aclanthology.org/W13-5712/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/temesgen-2013-development-amharic-grammar-checker-morphological/