---
title: "A Prototype of a Grammar Checker for Czech — Holan 1997"
description: "How a Czech grammar checker uses flexible word order, agreement rules, and staged parsing to distinguish errors from unusual sentences."
canonical: "https://research.elamur.ai/free/en/papers/holan-1997-prototype-grammar-checker-czech/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/holan-1997-prototype-grammar-checker-czech/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [1997](https://md.research.elamur.ai/free/en/papers/1997/) / A Prototype of a Grammar Checker for Czech

# A Prototype of a Grammar Checker for Czech

Paper · 1997 · Tomáš Holan, Vladislav Kuboň and Martin Plátek

**Authors:** Tomáš Holan, Vladislav Kuboň and Martin Plátek · **Year:** 1997 · **Venue:** Fifth Conference on Applied Natural Language Processing · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[Cited by **3** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/holan-1997-prototype-grammar-checker-czech/cited-by/) · Fifth Conference on Applied Natural Language Processing · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/A97-1022/)
- [PDF](https://aclanthology.org/A97-1022.pdf)
- [DOI 10.3115/974557.974579](https://doi.org/10.3115/974557.974579)

## Summary

A word near a noun may look like its modifier and still belong somewhere else in the sentence. That possibility matters in Czech, where words that depend on one another can be separated by material from another part of the sentence. A checker that looks for familiar sequences can overlook genuine errors, while a checker that assumes nearby words belong together can flag grammatical sentences. Holan and colleagues build a prototype that uses sentence structure to decide which words should be checked together. Their approach to [grammar checking](https://md.research.elamur.ai/free/en/topics/grammatical-error-correction/) also gives the grammar a way to represent familiar violations, so a failed agreement check can become evidence for a diagnosis.

The prototype separates word analysis, [syntactic parsing](https://md.research.elamur.ai/free/en/concepts/parsing/), and error evaluation. It begins much like a spelling checker, consulting a morphological dictionary for possible readings of word forms and a separate syntactic dictionary for information about how words combine. A modified CYK parser then builds trees using a single grammar. Some constraints can be relaxed and some rules explicitly anticipate errors. Either route can leave a marker in a tree. If every complete analysis contains a marker, a separate component compares the trees to decide what to report and where. If the parser finds no complete analysis, the checker can warn of that outcome, with no specific grammatical diagnosis.

The search begins with ordinary projective trees, in which each subtree covers consecutive words, and requires them to satisfy the grammar without violations. If this search fails, the next phase admits discontinuous constructions or recorded violations. The final phase permits them to occur together. In one example, a possessive form placed beside the word for *wife* appears to disagree with it in number. The same form can agree with *flowers* farther along in the sentence. Both readings are available in the middle phase. That makes the analysis itself part of deciding whether a warning is justified.

The authors report that, on a 75 MHz Pentium, phase one typically took roughly a second for sentences no longer than 15 words. Their more demanding example comes from the newspaper *Lidové noviny*. Its original wording takes 13,07 seconds in the ordinary parsing phase and yields 26 trees from 2272 intermediate items. Spelling out the title abbreviated as *ing.* brings the time to 8,95 seconds and the tree count to 22. The authors use such comparisons to identify lexical ambiguity and competing modifier attachments as sources of work. The implementation suppresses duplicate structures, gives priority to comparable subtrees with fewer violations, and processes suitable local constructions early in longer sentences.

The demonstration runs as a separate Windows program connected to Microsoft Word 6.0 through Dynamic Data Exchange. A macro sends sentences to the checker and highlights unknown words or word pairs implicated in a syntactic error. The checker’s own window can show the underlying trees and statistics. The authors present this as a demonstration for a language with considerable word order freedom. They estimate that a syntactic dictionary of about 150,000 entries would be needed for practical use and that building it exceeds their resources. They identify statistical methods as a direction for further work.

## Deep dive: A Prototype of a Grammar Checker for Czech

How a Czech grammar checker uses flexible word order, agreement rules, and staged parsing to distinguish errors from unusual sentences. · about 35 minutes to read

**In this deep dive**

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

### The problem and its context

#### Word order leaves the checker a choice

Many grammar checks depend on first identifying the words that enter into a grammatical relation. An agreement check needs a candidate pair. A case check needs some basis for saying which word or construction governs the form in question. A pattern over nearby words can sometimes supply that basis. Its usefulness declines when the sequence displaying the relation varies greatly or when a word can plausibly be connected to more than one part of the sentence. The paper takes Czech as an instance of a broader problem that the authors associate with most Slavic languages.

Word order freedom affects errors in two directions. A pattern written for one ordering may miss an error in another ordering. A pattern can also find an apparent violation in a sequence where the words play different roles from the ones the pattern assigns them. Consider the possessive example from the paper. The two readings disagree about the identity of the noun being modified. Establishing that identity requires accounting for material farther away. Checking a local feature match alone settles only whether the words agree under a particular attachment, meaning a particular choice about which word depends on which.

This puts a practical requirement on the grammar. It must give the parser enough room to recover a valid relationship across intervening material. At the same time, it must let the parser express the possibility that the local relationship really was intended and contains an error. If only grammatical analyses were available, a failed feature check would merely eliminate a candidate tree. A checker would then have to recover the reason for failure some other way. If every mismatch were enough to trigger a warning, an invalid candidate could overshadow a valid analysis of the same sentence.

The paper addresses both needs with a grammar that can describe ordinary and erroneous structures. Its search policy distinguishes them as the parser works. The ordinary route comes first because successful analysis there is sufficient for the checker’s initial decision. Wider searches are reserved for sentences for which that route produces no complete tree. This sets up two questions that recur through the paper. The linguistic question is what relationship the sentence supports. The implementation question is how much of the space of possible relationships the program must explore to answer.

#### Earlier work as the authors describe it

The authors situate the prototype in work on parsing sentences that fall outside a grammar’s usual expectations. They mention Carbonell and Hayes’s paper on recovering from such input and remark on the scarcity of subsequent publications they saw on automatic grammar checking for languages with free word order. They name the Czech checker CZECKER and a Russian agreement corrector as more recent examples. Agreement is the specific problem named for the Russian work. The Czech prototype’s scope, as presented here, includes both agreement violations and structural alternatives that can change whether there is a violation to identify.

The paper also refers back to the authors’ earlier work on grammar-based checking for free word order. That work supplies cases in which an apparently erroneous construction has a possible discontinuous analysis, including examples involving question words. A separate technical report presents the underlying dependency grammar more fully. The prototype paper concentrates on what the grammar lets the checker do and how those capabilities are made available in a running program.

These connections give the paper a narrower historical claim than a survey of grammar checkers would make. It motivates the move away from simple patterns by discussing the structure of the language. It cites work that dealt with recovery, Czech checking, Russian agreement, and the formal tools used by the prototype. The cited systems are part of that context. The paper’s empirical comparisons concern variations in its own inputs and parsing conditions.

#### What a checker has to return

A parser can offer an account of which words belong together. A writing tool must turn that account into a response someone can use. Here a grammatical tree, a tree with violations, and failure to build a tree have different meanings. A grammatical tree gives the checker grounds to leave a sentence alone. A tree with violations makes the origin of an apparent problem a question for further evaluation. Failure can arise from gaps in the grammar and provides too little information for a specific diagnosis.

That distinction informs the development work the authors describe. They needed a formalism for grammatical and erroneous constructions, an implementation that could interpret it, a grammar with rules written in that formalism, and lexical information detailed enough for the rules to apply. They also needed a way to bring the result back into the editor. The division between linguistic decisions and editor behavior allows the program to expose more information than it puts into the document itself. A user can see a warning in context, while the separate application can display the analyses that led to it.

There was also a practical interface constraint. The authors initially wanted to provide a dynamic-link library with the editor’s expected grammar-checking interface. They found the interface information difficult to obtain because companies generally kept it private. For the demonstration they used Dynamic Data Exchange, a Windows mechanism for exchanging data between applications. They describe this connection as slower than the one they had originally intended. It allowed them to preserve the checker as a separate program and have an editor control it through a macro.

### The method, step by step

#### From the editor to possible readings

The demonstration begins with the Word macro. It selects a sentence, sends it to GRAMMAR.EXE, and receives the outcome. The macro processes the sentences in a selection or proceeds from the cursor to the end of the document. The checker itself runs in the background. Its architecture separates tasks according to what each stage needs to know. Word analysis supplies possible readings, the parser tries to make those readings fit together, and evaluation interprets the violations that survive in complete sentence analyses.

How the Czech checker analyzes and reports a sentence The steps in order.

The first linguistic stage acts as an extended spelling checker. It looks for unknown forms and gathers information about how known forms can be read. [Morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) concerns properties of the forms words take, such as the number or case a form can express. The syntactic dictionary contributes information about the [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), the dictionary form associated with a word, and its behavior in a sentence. The authors keep morphological and syntactic information in separate files so they can revise them independently as they develop the system. They point out that a combined dictionary could hold both kinds of information.

A word can produce more than one reading. The parser receives a separate unambiguous item for each reading. An item in this sense gives the interpreter a set of definite values to work with. Distinct items for the same word stand for the unresolved alternatives. A form can therefore be ambiguous in the sentence even though each individual item entered for it is unambiguous. This difference matters when the paper counts items. Even before any two words are combined, the count of items can exceed the count of words.

Most of the data in an item are stored as attribute–value pairs. One attribute can encode a syntactic class, another a number value, and another a property of the verb form. The authors chose this representation for efficiency after deciding against general feature structures for their lexical data. The complex values that remain concern valency frames. A valency frame records what participants or complements a word takes and how those roles can be expressed. In the implementation, the information for a frame is represented by nested attribute–value pairs.

The entry for the Czech form *informoval*, meaning that someone informed someone, illustrates the point. Its data give *informovat* as the lexical form and include information about the verb and its inflection. The frame identifies a nominative participant, an accusative addressee, and a complement that can be expressed as a clause. Nominative and accusative are case values, here used to distinguish forms eligible for different roles in the frame. A later rule can consider whether a candidate expression can fill one of these roles and which slots still remain open.

This lexical stage explains why recognizing that a word exists is only part of the task. A title abbreviated on the page can be a perfectly familiar expression and still leave its case, gender, or number unresolved. The parser has to entertain the readings that the form permits and see which combinations survive. An unknown word and a known but highly ambiguous word therefore create different problems. The first concerns the information available at lookup. The second can make a successful analysis expensive even when the dictionary recognizes the form.

#### How the grammar records a violation

The prototype uses metarules based on Robust Free Order Dependency Grammar, or RFODG. In this setting, a dependency describes how one expression is attached to another, as when a modifier depends on a noun. A tree represents these relationships over the sentence. The paper uses the underlying formalism to describe trees with both grammatical irregularities and discontinuous coverage. It gives the parts needed to explain the prototype and refers elsewhere for the formal definitions.

The grammar’s symbols are classified independently along several dimensions. A symbol is either terminal or nonterminal in the usual grammatical sense. Terminals correspond to material at the input level, while nonterminals represent constructions recognized by the grammar. The other classifications distinguish deletable from nondeletable symbols and positive from negative symbols. The paper associates the first of those distinctions with classifying inconsistencies and the second with locating them. Every symbol has a classification on each dimension. For example, knowing that a symbol is negative still leaves the other distinctions to be established.

A negative symbol records that the derivation used a licensed way of construing a violation. One way to produce it is to relax a soft constraint. A soft constraint specifies a desired match and carries an error marker that can be used if the match fails. The metarule notation uses `?` for this kind of check. The option to let a mismatch pass is available only in the later phases, which admit violations. A hard constraint uses `=` in a test and must be satisfied wherever its rule is applied.

A separate route uses rules written to anticipate a particular error. These metarules carry the keyword `NEGATIVE`. They are available only in the phases that admit negative material. This lets a grammar writer express a recurring erroneous pattern directly. A soft condition instead makes room for a diagnosed mismatch inside a rule that also deals with ordinary combinations. The tree can carry evidence from either mechanism into evaluation.

A metarule is procedural. It tests whether it can combine a pair of items and specifies what to do if it can. The paper uses `A` for the item on the left and `B` for the one on the right, with `X` for the result. The assignment operator changes a value in the result. One assignment shown in the paper’s example is:

```
X.RIGHTGEN := no
```

`X` is the result item, the dot identifies an attribute of that item, and `RIGHTGEN` is the attribute the illustrated rule checks when considering a genitive modifier on the right. `:=` assigns a value, and `no` is the value written to that attribute. After a successful application the resulting item thus carries a changed condition for later applications involving that position.

The example metarule deals with a noun taking a genitive nominal modifier to its right. Genitive is the case assigned to the modifier in the example. The rule checks the syntactic classes of its inputs, tests the case of the right-hand item, and consults a right-genitive flag on the left item. It contains additional tests when the left item is a title. The example shows why the authors use a metarule to represent a family of possible combinations. There is a common procedure for inspecting candidate items, and the route through the procedure can depend on the properties of each item. The example also carries `PROJECTIVE`, a keyword that restricts the rule to projective application.

The grammar contains descriptions written in this form, and the lexical entries provide the information those descriptions inspect. The newspaper sentence and its variants serve to investigate the behavior of that setup. The paper specifies no training procedure that estimates the constraints from those sentences. Its account of grammar development concerns how to express distinctions, control application, and organize the work of the interpreter.

#### From item combinations to sentence trees

The interpreter uses a modified CYK algorithm. Its input is the set of unambiguous readings prepared by the lexical stage. It combines items that match the grammar and can use a resulting item in subsequent combinations. Intermediate results carry structure and coverage. Coverage identifies the positions of the words included in an item. A complete sentence tree accounts for the sentence through the relationships established by the grammar.

The distinction between projective and nonprojective analysis is expressed through that coverage. In the paper’s terms, a nonprojective subtree covers a discontinuous set of positions. Imagine an adjective and the noun it modifies with unrelated material between them. If that intervening material does not belong to the subtree, its coverage has a gap. A projective subtree covers an uninterrupted stretch. The program can therefore restrict ordinary parsing to consecutive coverage and make discontinuous combinations available when needed.

Projectivity concerns the shape of the analysis. Positivity concerns whether it used mechanisms that recorded a grammatical violation. The axes can vary independently. An ordinary sentence can have a positive projective analysis. A grammatical sentence with discontinuous coverage can have a positive nonprojective analysis. An analysis with a marked violation can have either form of coverage. This makes it possible to search for an account that explains what is unusual about a sentence without immediately equating that unusual property with an error.

The interpreter retains partial results obtained in the first phase and uses them in later ones. A subtree composed successfully under the stricter conditions can still be useful in a larger derivation that requires an additional kind of combination. Reuse here concerns work inside the parser. The evaluation module is passed complete trees for diagnosis. An intermediate subtree can contribute to a complete result without being used as a stand-alone source of error messages.

#### What changes at each phase

The first phase looks for a positive projective tree. Soft constraints still have to hold, error-anticipating rules are unavailable, and the search uses projective combinations. If a complete tree is found, the program treats the sentence as correct. The simple illustration is the sentence in which the possessive modifying *wife* is feminine singular. That local relation satisfies agreement, and the sentence can be analyzed continuously. The authors also use full parsing in the first phase for testing and debugging, where seeing the alternatives is useful.

The middle phase admits positive nonprojective trees and negative projective trees. It can interpret the sentence as grammatical with a discontinuity or as containing a violation within a projective structure. This is the phase that handles the authors’ example with a feminine plural possessive at the beginning of the sentence. If the possessive modifies the singular *wife*, its number is incompatible with that noun. If it modifies the plural *flowers*, the forms are compatible and the woman watered Charles’s flowers. By then the possessive is separated from its head by the subject and verb, so that reading has discontinuous coverage.

The example is important because the two candidate trees explain the same visible sequence in different ways. A checker can identify the apparent disagreement and still have grounds to accept the sentence. The paper shows both trees arising in this phase. It describes the evaluation process as deciding among an error message, a warning, and silence under the user’s settings. It does not give an exact decision rule for all cases where the available trees support competing conclusions.

The final phase admits negative nonprojective trees. A derivation can now use discontinuous structures and violations together. This covers a sentence whose structure would require a nonprojective attachment even if the offending form were corrected. If a complete analysis is found, its marked evidence can be evaluated. If the widened search produces no complete tree, the checker can warn that it was unable to analyze the sentence. The authors withhold a specific error diagnosis in that situation.

The design places the least permissive search first and stops early when the result suffices. That matters because every additional kind of combination can increase the number of intermediate items, even if few new complete analyses are eventually useful. The later phases also have access to results from the ordinary search. The paper describes the phases as a practical order of work, with the more permissive derivations available when the ordinary grammar runs out of ways to complete a tree.

#### Keeping equivalent results from multiplying

A parser can arrive at one structure through several orders of rule application. Consider a verb that can combine with its subject and its object. The two roles can be filled in either order, yet the resulting relationships can be the same. A grammar writer could force one order as a way to limit these paths. The authors point out a drawback for error checking. If a restriction forces the parser to handle one side of the verb first, a problem there can impede attachment of material on the other side.

The interpreter instead checks a new item against what it has already built. A new item is dropped if an existing item matches it in both structure and coverage. Coverage is essential to the comparison because the same kind of structure can be built over different positions in the sentence. Structure is essential because two analyses can cover the same words while attaching them differently. Requiring both to match lets the interpreter target redundant derivations while leaving structurally distinct readings available.

Allowing soft constraints to fail introduces a related problem. Near-equivalent structures can now carry different collections of error markers. The paper demonstrates the expansion with a preposition, an adjective, and a noun. The preposition can take accusative or locative. The adjective has alternatives for animacy and case, with singular number. The noun is animate and singular and has alternative case readings. The starting alternatives are counted as follows.

```
2 + 4 + 2 = 8
```

The opening `2` counts the preposition’s readings, `4` counts the adjective’s readings, and the following `2` counts the noun’s readings. Each `+` combines the counts for adjacent words in the expression. The `=` states that their total is `8` unambiguous input items.

With the constraints enforced, the interpreter finds one prepositional phrase, with animate gender, accusative case, and singular number. Allowing relaxation yields 16 items, of which 15 have one or two violations. A parser that extends all of these items can spend much of its subsequent work exploring differences that are local to the phrase. The ability to diagnose an error by admitting a failed check thus comes with an immediate cost even before the phrase is attached to the rest of a sentence.

The authors keep this cost in check by comparing branches or subtrees whose structure and coverage match. When a new subtree carries more violations than a comparable existing one, the interpreter does not extend it further. The criterion counts violations within the candidate. The paper discusses a possible alternative in which the constraints themselves would be placed in an order of relaxation. The implementation described uses the comparison of subtrees.

This rule has consequences for diagnosis. An inconsistency can disappear from the location where an initial candidate records it and turn up later at a different attachment. A locally preferable subtree may keep the parser from following a route that would have given evaluation a more direct indication of the source. The authors accept that difficulty in return for faster handling of relaxed rules. Their account distinguishes keeping a useful route through the search from preserving all the evidence about where a mismatch first could have been recognized.

#### Giving local constructions priority

The authors also organize the grammar for positive projective parsing into layers. They start from the observation that some phrases can be recognized locally, even in a language with considerable flexibility in word order. A title immediately before a surname is one example. Some prepositional and adjectival phrases also have helpful local boundaries. Finding such structures early can avoid combinations among their components and the rest of the sentence that are unhelpful for deciding whether the sentence has a grammatical analysis.

The first layer handles titles and abbreviations preceding names. The next retains that rule and adds rules for prepositional and adjectival phrases. The following layer includes rules for filling valency slots and other operations within a clause. The grammar then adds rules for combining clauses into complex sentences. The last layer deals with the boundary markers at the start and end of the sentence. The left sentinel is the formal marker for the opening boundary seen in the paper’s tree illustrations.

The layers can share rules. Their purpose is to control when increasingly broad combinations are attempted. The authors mention that the layers could in principle be revisited in cycles. Their implementation applies them successively. Consulting the file that describes the layers has a fixed cost, so they use the layered procedure only above a threshold of 15 words. For shorter inputs, that overhead could consume the benefit.

A complete analysis obtained through layers supplies positive evidence. Failure at this restricted search can arise even when the sentence is grammatical. The paper therefore confines the approach to recognizing positive projective structures and excludes it as a way to locate errors. A local phrase boundary that saves work while looking for a valid tree may be exactly the assumption that would conceal a useful competing explanation when the checker needs to diagnose a problem.

#### Turning a tree into a message

The evaluation module has a narrower task than parsing. It compares complete trees that contain markers for inconsistencies and attempts to identify which words are responsible for a reportable error. A marker shows that a derivation took a particular route through the grammar. Evaluating the available trees gives the checker a chance to see whether the marked relationship is stable across alternatives. Since the paper describes the module briefly, its main contribution here is the division of responsibilities between constructing the evidence and deciding how to present it.

If the parser has a complete analysis without an inconsistency, the sentence is treated as grammatical. If complete analyses exist and all contain an inconsistency, they supply input to evaluation. If no complete analysis exists, a warning can convey that the sentence went unchecked or proved too complicated. These distinctions carry through to the interface. The macro colors unknown words blue and colors pairs implicated in a syntactic error red. A message box can give a short description of a localized problem.

The independent application provides a more detailed view. It can display the complete list of errors, statistics about the analysis, and a tree. The paper gives the example of a user moving from a message in the editor to the checker window to examine the result. The editor thus shows a concise outcome at the location where the user is writing, while the checker can expose the structural account behind it.

### Experiments and results

#### What the paper measures

The authors report running time and the amount of material generated during parsing. Their main comparison uses an attested sentence from a corpus of *Lidové noviny* newspaper text. The baseline is the original wording. The authors then try edits that alter the ambiguity of a word, remove locally recognizable phrases or title material, and reduce the number of modifier attachments to consider. They also examine the last clause by itself. The variants are related examples built to investigate where time is spent.

The timing examples were run on a Pentium 75MHz with 16MB RAM. For sentences of up to 15 words, the paper says the initial positive projective phase typically took about 1 second on a Pentium 75 MHz. This observation concerns the ordinary first phase. The authors describe long, complicated sentences as capable of taking tens of seconds. They introduce the newspaper sentence to connect that practical difficulty to specific properties of an input.

There are three quantities to keep apart in the newspaper comparison. Time describes how long the reported parsing operation took. The number of complete structures describes the alternative trees obtained for a variant. The count of derived items describes intermediate work and can include candidates that never become part of a complete result. None of these quantities measures whether the program located a real error correctly. A sentence can generate many trees while the initial decision to accept it remains straightforward.

The examples do not compare a rule-based prototype with an external checker or a simple pattern system. Each variant goes through the authors’ parser. The unchanged newspaper sentence supplies the baseline for input comparisons. For the isolated prepositional phrase, enforcing the ordinary constraints supplies the baseline for the comparison with relaxation. These comparisons have different roles. The newspaper edits investigate ambiguity and attachment, while the phrase example shows the effect of admitting inconsistent combinations.

#### From the original sentence to a single analysis

The original newspaper sentence combines a statement about cooperation with a party and a denial involving a proposed appointment. The latter part contains names, titles, and material about a telephone conversation and the appointment. The positive projective parser takes 13,07 seconds for this version. It derives 2272 items and returns 26 different trees. There is plenty of work even before the program considers discontinuity or relaxation. The authors point to the number of attachments available for free modifiers and note that the parser uses syntactic information alone when building the structures.

The first edit spells out *ing.*, which abbreviates a title before a name. The original form looks the same across case, gender, and number readings. A full inflected form makes fewer readings available for this word. The edited sentence takes 8,95 seconds and produces 22 trees. The count of derived items also falls. This is a small edit at the level of the written sentence, yet it changes the set of items that enter the search and the combinations that can follow from them.

The paper next removes the phrase about the telephone conversation, which the authors treat as locally recognizable in this sentence. They explain that prepositions supply useful boundaries here. The reported time becomes 8,79 seconds and the derived item count becomes 1789. There are still 22 complete trees. This result shows a case in which removing several words and a phrase leaves the number of complete alternatives intact. The time change is modest beside the effect of replacing the abbreviation.

The authors then examine analyses in which the expanded title still attaches implausibly to a preceding name. The genitive form of the title can appear as a right-hand attribute of a name whose form is instrumental. Instrumental is another case value. The relevant trees show why replacing the abbreviation leaves some ambiguity in the sentence. The intended title before its own surname remains a word the grammar can try to attach elsewhere.

Deleting the expanded title altogether gives a time of 3,74 seconds. The parser produces 10 structures and derives 1021 items. The following simplification removes the other first names and titles immediately preceding the words that govern them. The reported time is then 1,71 seconds, with 5 structures and 587 derived items. The authors draw attention to the special forms used by some Czech titles, which provide a basis for recognizing the title use locally.

Finally they remove the remaining free modifiers and obtain a sentence that preserves the main and embedded clause structure in a stripped form. This variant takes 0,22 seconds and yields a unique structure after deriving 141 items. The time chart marks this variant because it has the lowest reported time in the comparison. Its input is substantially simpler than the original. The timings describe variation in the cost of parsing those inputs under the stated conditions.

Positive projective parsing time for the Lidové noviny sentence and its variants The variant retaining the clause structure with modifiers removed takes the least time.

**The numbers**

| System or setting | seconds |
| --- | --- |
| Original newspaper sentence | 13,07 |
| Abbreviated title spelled out | 8,95 |
| Locally bounded phrase removed | 8,79 |
| Expanded title removed | 3,74 |
| Further first names and titles removed | 1,71 |
| Clause structure with modifiers removed (this paper) | 0,22 |
| Last clause analyzed separately | 2,25 |

The final comparison in the paper takes a different direction. The authors analyze the last clause on its own, using the expanded title and keeping the cluster of modifiers in that clause. This input takes 2,25 seconds. It yields 10 structures and 722 derived items. The example helps separate the presence of several clauses from the density of possible attachments inside a clause. The stand-alone clause remains ambiguous, while the reduced sentence retaining its clause structure has a unique result.

Intermediate items derived for the Lidové noviny sentence and selected variants Removing titles and other modifiers reduces the number of items the parser builds.

**The numbers**

| System or setting | derived items |
| --- | --- |
| Original newspaper sentence | 2272 |
| Locally bounded phrase removed | 1789 |
| Expanded title removed | 1021 |
| Further first names and titles removed | 587 |
| Clause structure with modifiers removed (this paper) | 141 |
| Last clause analyzed separately | 722 |

The item counts help explain why a time measurement on its own would give an incomplete picture. The original sentence needs work to generate intermediate candidates as well as to produce a relatively large collection of complete trees. An edited sentence can reduce the former while leaving a particular set of final attachment alternatives available. The locally bounded phrase illustrates this. Its deletion reduces the work spent inside the derivation, but the complete tree count remains the same as in the preceding variant.

The paired measurements also show why a small tree count cannot be read as a direct measure of search cost. The variant with the title removed and the last clause in isolation both produce 10 complete structures. Their derived item counts and times differ. Work done before the interpreter reaches a complete structure depends on the lexical alternatives and the partial attachments available in the input.

#### The cost of admitting violations

The isolated preposition, adjective, and noun give a separate count under different parser conditions. The words and their input readings stay the same while the rules become more permissive. With the usual constraints, the phrase has one successful analysis. With relaxation there are 16 items, of which 15 contain inconsistencies. The paper says that a nondeterministic parser can carry all these alternatives onward. An increase at the level of one phrase can affect later combinations with other ambiguous phrases or with the verb.

This comparison motivates the rule that refrains from extending more inconsistent subtrees when a comparable candidate already exists. The reported counts are counts for the example with and without relaxation. They are not before-and-after measurements of the pruning rule itself. The paper describes the rule as speeding the handling of relaxed constraints, without reporting a separate timing for the same phrase with pruning switched off and then on.

Taken together, the results show an implemented checker producing the intended kinds of analyses and the costs that follow from broadening the search. They give concrete evidence about ordinary parsing time and enumerate the competing analyses in selected examples. For the newspaper variants, the runs concern the positive projective stage. The authors suggest that reducing ambiguity could pay off even more during relaxed or nonprojective parsing. The measured results in the chart concern the ordinary stage alone.

### What the ablations show

The paper gives controlled changes to example inputs and to constraint handling, with no systematic ablation that disables each component of the checker in turn. Its comparisons clarify why the authors concentrate on lexical ambiguity, attachment alternatives, and relaxation. They also explain the design of the layers. The evidence is strongest when the change is narrow and the quantities being compared have the same meaning on either side of it.

#### Lexical ambiguity can be expensive before syntax is unusual

Replacing the abbreviation is the narrowest of the newspaper edits. The title remains in the sentence, and the overall arrangement of the words around it is preserved. The changed word form conveys more morphological information. The lower time and the smaller collection of trees show that a sizable part of the parser’s work can start with the readings of a single lexical item. Projectivity and grammaticality have not been made more permissive. The first phase already has to deal with the ambiguity.

The following inspection of the trees explains what survives that edit. A full title form can still attach to an unintended name. This separates ambiguity about the attributes of a word from ambiguity about its role in a larger structure. Inflection helps with the former, while competing attachments can persist after the form is made more specific. Deleting the title suppresses candidates for both kinds of work. Its stronger effect comes from an edit that also removes a piece of the sentence.

The phrase about the telephone conversation provides a useful comparison. The authors chose it because its boundaries were clear in this example and it could be checked locally. Its removal reduces the intermediate item count while preserving the number of full analyses obtained in the preceding variant. This suggests why the paper concentrates on the identity of an ambiguous modifier and its possible heads. An easily recognized phrase can use some processing time without being the main source of divergent sentence trees.

#### Modifier attachments account for much of the remaining work

Further deletion cuts the number of names, titles, and modifiers the parser can attach in different places. The reduced sentence keeps the arrangement of clauses and becomes easy for the ordinary parser to resolve. The last clause on its own gives the complementary observation. With its modifiers still present, it produces multiple structures despite being analyzed apart from the rest of the sentence. The authors say other test data pointed in the same direction. They attribute the chief source of inefficiency to clauses rich in optional modifiers and adjuncts, meaning attached material that adds detail without filling a required role in the construction.

The comparison supports the distinction between nesting clauses and giving their words many available attachments. It leaves the causes associated with individual deletions partly entangled. Several changes shorten the input and remove alternatives simultaneously. When more than one title or name disappears, the timing no longer isolates the effect of any one of them. The expanded title’s unexpected attachment is an example where the tree itself provides more specific evidence than the timing does.

The layering scheme follows from these observations. It tries to establish local constructions before considering combinations at the scale of the clause or sentence. The deletion experiments indicate where that strategy might save work. The timed variants are edits to the input, and a speed comparison holding the same input fixed with layers enabled and disabled is absent. The authors give the rule layers and the threshold they use, alongside their qualitative account of where the procedure helps.

#### Relaxation buys coverage at a search cost

The phrase example holds the input readings fixed and changes whether the grammar admits violations. Under strict constraints, the proposed phrase has a single recognized reading. Under relaxation, candidates can survive several kinds of incompatible feature values. This illustrates how a useful feature of an error checker can become a performance problem. Every preserved candidate might later be tried in a larger attachment. The huge majority of the candidates in the example already carry an inconsistency before any wider sentence structure is built.

The policy of extending comparable subtrees with fewer violations takes advantage of the distinction between finding a structural combination and following all the ways of marking it. If the structure and word coverage agree, there is reason to prefer an analysis that violates fewer checks. There can still be a loss of information for diagnosis. As the authors observe, the location at which the analysis eventually records a violation can move. The example shows the pressure behind the policy. It supplies no measured localization result for pruning in isolation.

The competing readings of the possessive sentence provide a separate qualitative analysis. They put nonprojectivity and relaxation in direct competition as explanations. The positive nonprojective tree preserves agreement by choosing a discontinuous attachment. The negative projective tree preserves continuous coverage by accepting a disagreement. The authors’ decision to make both available in the same phase means that the checker can encounter the evidence for each before evaluation decides what to convey. This is a demonstration of the grammar’s expressive range on a specific ambiguity. Its value here is to make clear what a detector would be assuming if it pursued either interpretation alone.

### Limitations

#### Limits the authors identify

The authors place the main obstacle to practical use in the syntactic dictionary. Grammar-based analysis needs lexical information rich enough to decide how individual words combine. Valency entries, roles, and other syntactic attributes must be present for rules to use them. The authors estimate a dictionary of about 150,000 items and say they lack the people and funding to build it. This is an estimate of the scale of the necessary lexical resource. It is not a measurement of the size or coverage of the dictionary used in the prototype.

The grammar itself can also be incomplete. The authors explicitly connect this possibility with some cases where the parser produces no result. Their decision to withhold a specific error message in those cases means an unanalyzed sentence can contain a genuine error without the checker locating it. A user can ask for warnings about analysis failure. Such a warning is evidence about the outcome of processing, with the sentence’s grammatical status unresolved.

The authors avoid basing diagnoses on partial trees. They give both linguistic and computational reasons. The relevant violation can be hard to recover from partial structure, and evaluating numerous partial trees can add considerable work. This is consistent with reusing partial results during parsing. Reuse helps construct a complete account, while diagnosis depends on what the complete accounts show. Consequently, local evidence that could seem suggestive to a reader is insufficient on its own for a user-facing error report.

The syntactic analysis omits semantics and context. The authors use that limitation to explain the large number of variants for the newspaper sentence. A phrase can be attachable under the grammar in spite of making little sense in the situation being described. In a checker that aims to diagnose errors, the availability of such attachments matters twice. It increases the search space, and it can affect which structural explanation looks best when there are several competing analyses.

Performance also motivates restrictions on how the techniques are used. The authors report that long inputs can be slow, that consulting the layers can add overhead on short inputs, and that failure under layered parsing does not establish that the sentence is erroneous. Their use of layers is therefore confined to seeking grammatical positive projective results. For relaxed analysis, their pruning can displace where an inconsistency appears. They regard the gain in processing efficiency as worth the added difficulty for evaluation.

The authors also mention an interface limitation. Dynamic Data Exchange is slower than the connection they initially intended. It was acceptable for the demonstration and enabled cooperation with a commercially available editor. Their conclusion presents the program as a prototype and points to statistical methods as a possible direction for continuation. No statistical system is evaluated in the paper.

#### Limits of the evidence

The paper measures processing time and counts of structures and intermediate items. It gives no corpus-level rate for correctly detecting errors, incorrectly flagging grammatical text, or locating a true problem at the right words. The counts serve the question the authors investigate about the cost of analysis. They cannot establish how reliable the interface’s red highlights would be across the kind of text a user might submit. The observation that pruning retains recall appears as the authors’ assessment of the technique. The paper supplies no recall measurement or evaluation set for that assertion.

The newspaper variants also come from one source sentence. Their close relationship makes it easy to see how changing an abbreviation or removing a modifier changes the search. It limits any inference about typical text, in which sentence length, lexical coverage, ambiguity, and the number of possible attachments can vary together. The authors mention other test data that supported their interpretation, but they give the detailed results for the newspaper example and do not describe a sampling procedure for the broader observations.

The reported timing of about 1 second for the first phase on sentences of up to 15 words has similar limits. The paper does not specify a distribution of timings, how many sentences support the observation, or how their ambiguity was distributed. The statement is a practical characterization of behavior on the stated hardware. The more precise timings belong to specific inputs. None gives an average cost for later phases, where the ability to relax constraints or use discontinuous structures can change the workload.

The grammatical possessive example establishes that the prototype can produce both readings for a chosen sentence. The example does not establish how often this kind of ambiguity occurs or how the system resolves it in a collection of comparable cases. The paper gives more detail about finding trees and marking inconsistencies than about the algorithm that compares them. It does not specify how supporting evidence is merged across trees, how ties are handled, or how the user settings map to decisions in each ambiguous case.

There is also a difference between accepting a sentence because a grammatical tree exists and identifying the reading the writer intended. The prototype can accept a surface string for which its grammar finds a legitimate construction. That policy is well suited to avoiding a warning based solely on an erroneous alternative, as in the possessive example. An intended reading could still contain a mistake while another reading happens to satisfy the grammar. The paper’s examples establish structural possibilities more directly than they establish the writer’s intended meaning.

The authors describe RFODG as providing measures for classifying nonprojectivity and incorrectness, but leave the formal definitions to their other work. The paper illustrates the distinctions the implementation uses and gives part of a metarule. It does not specify the full grammar, lexical resource, or evaluation algorithm in enough detail to reproduce all the analyses from the article alone. The contribution documented here is the architecture of a working demonstration, the organization of its search, and the behavior observed in the selected cases.

### What came after

#### Grammar and spelling correction for Danish

[Spelling and Grammar Correction for Danish in SCARRIE](https://md.research.elamur.ai/free/en/papers/paggio-2000-spelling-grammar-correction-danish-scarrie/) (2000) cites the Czech prototype and places both spelling and grammar correction in the scope of a system for Danish. The pairing concerns a distinction already visible in the Czech design. It begins with spelling and word-form analysis and hands information about recognized words to a separate syntactic procedure. Its editor integration makes the outcomes of those operations visible in the same writing environment, while a diagnosis involving a pair of words calls for different evidence from an unknown form.

The citation connects work on writing assistance in different languages. The title of the Danish paper establishes the task and the language it addresses. It leaves open what technical role the Czech paper plays in that work. In particular, the citation alone gives no basis for attributing the Czech metarules, staged search, or treatment of discontinuity to SCARRIE. The comparison that can be made directly is one of scope. Both works concern what a writing tool can establish about spelling and grammar, and they address different languages.

#### Gender and relationships across a text

[Toward Gender-Inclusive Coreference Resolution](https://md.research.elamur.ai/free/en/papers/cao-2020-gender-inclusive-coreference-resolution/) (2020) cites the prototype from a different area of language analysis. [Coreference resolution](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/) concerns which expressions refer to the same entity. Its task therefore differs from diagnosing whether particular words agree in a syntactic construction. The title identifies gender inclusion as the later work’s focus. The point of contact with the Czech paper is that gender can enter into decisions about relationships between expressions, even though the decisions themselves serve different purposes.

In the Czech checker, gender is one property of the readings that words can have. The prepositional phrase example uses gender alongside case and number to determine which combinations the grammar accepts. The later paper’s stated subject is how coreference resolution can be gender-inclusive. Its citation of the checker connects that inquiry to a work where grammatical information helps determine which relations are available in an analysis. The citation does not identify a checker component that the coreference work adopts.

[Toward Gender-Inclusive Coreference Resolution: An Analysis of Gender and Bias Throughout the Machine Learning Lifecycle](https://md.research.elamur.ai/free/en/papers/cao-2021-gender-inclusive-coreference-resolution-analysis/) (2021) also cites the prototype. Its title names a broader scope for examining gender and bias across the stages of machine learning. That scope differs from the Czech paper’s account of lexical entries and procedural grammar rules. The Czech discussion shows how a word’s attributes can be specified explicitly and then tested during analysis. The later work’s stated subject concerns how gender and bias are addressed across the development of coreference systems. The existence of the citation establishes a connection between the works, while the title leaves the specific use of the earlier paper undetermined.

These later citations reach from a nearby task in Danish writing assistance to a different task in which systems decide which expressions refer to the same entity. The Danish work shares the concern with spelling and grammar in a writing tool. The coreference works share an interest in the role that information about gender can play when interpreting relationships among words and expressions. The cited connection in each case is documented more clearly than any transfer of the prototype’s implementation.

## Cite

Cite as Tomáš Holan, Vladislav Kuboň and Martin Plátek. 1997. A Prototype of a Grammar Checker for Czech. Fifth Conference on Applied Natural Language Processing.

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

```bibtex
@inproceedings{holan1997prototype,
  title = {{A Prototype of a Grammar Checker for Czech}},
  author = {Tomáš Holan, Vladislav Kuboň and Martin Plátek},
  booktitle = {Fifth Conference on Applied Natural Language Processing},
  year = {1997},
  doi = {10.3115/974557.974579},
  url = {https://doi.org/10.3115/974557.974579}
}
```

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