Skip to main content
QUICK REVIEW

[Paper Review] Combining Trigram-based and Feature-based Methods for Context-Sensitive Spelling Correction

Andrew R. Golding, Yves Schabes|ArXiv.org|May 31, 1996
Speech and dialogue systemsComputer Science5 citations
TL;DR

This paper proposes Tribayes, a hybrid spelling correction system that combines trigram-based syntactic context modeling with feature-based Bayesian classification to improve context-sensitive error detection. By integrating part-of-speech trigrams for syntactic constraints and word-specific features for lexical distinctions, Tribayes outperforms both individual methods and Microsoft Word’s grammar checker on homophone and collocation errors.

ABSTRACT

This paper addresses the problem of correcting spelling errors that result in valid, though unintended words (such as ``peace'' and ``piece'', or ``quiet'' and ``quite'') and also the problem of correcting particular word usage errors (such as ``amount'' and ``number'', or ``among'' and ``between''). Such corrections require contextual information and are not handled by conventional spelling programs such as Unix `spell'. First, we introduce a method called Trigrams that uses part-of-speech trigrams to encode the context. This method uses a small number of parameters compared to previous methods based on word trigrams. However, it is effectively unable to distinguish among words that have the same part of speech. For this case, an alternative feature-based method called Bayes performs better; but Bayes is less effective than Trigrams when the distinction among words depends on syntactic constraints. A hybrid method called Tribayes is then introduced that combines the best of the previous two methods. The improvement in performance of Tribayes over its components is verified experimentally. Tribayes is also compared with the grammar checker in Microsoft Word, and is found to have substantially higher performance.

Motivation & Objective

  • Address context-sensitive spelling errors where incorrect words are valid English forms (e.g., 'peace' vs. 'piece').
  • Correct word usage errors involving near-synonyms with distinct collocational patterns (e.g., 'amount' vs. 'number', 'among' vs. 'between').
  • Overcome limitations of traditional tools like Unix 'spell' that lack contextual awareness.
  • Develop a hybrid model that leverages the strengths of both syntactic trigram and lexical feature-based approaches.
  • Demonstrate superior performance over existing systems, including Microsoft Word’s grammar checker.

Proposed method

  • Use part-of-speech trigrams (Trigrams) to model syntactic context, encoding word sequence constraints with minimal parameters.
  • Apply a Bayesian classifier (Bayes) that uses lexical and contextual features to distinguish between homophones and collocation errors.
  • Design a hybrid model, Tribayes, that combines Trigrams and Bayes via weighted fusion of their confidence scores.
  • Train the Trigrams model on part-of-speech sequences to capture syntactic plausibility of word sequences.
  • Train the Bayes model on features such as word frequency, collocation patterns, and morphological cues to resolve ambiguous choices.
  • Integrate both models using a confidence-weighted voting mechanism to improve correction accuracy.

Experimental results

Research questions

  • RQ1Can part-of-speech trigrams effectively model syntactic context for distinguishing between homophones?
  • RQ2Can feature-based Bayesian classification better resolve lexical ambiguity than trigram models in cases where syntactic structure is insufficient?
  • RQ3Does combining trigram and feature-based methods yield a performance improvement over either method alone?
  • RQ4How does the hybrid Tribayes model compare to commercial tools like Microsoft Word’s grammar checker in correcting context-sensitive errors?
  • RQ5Can the hybrid approach generalize across different types of homophonic and collocation-based spelling errors?

Key findings

  • Tribayes achieves a significant performance improvement over both the Trigrams and Bayes models individually.
  • The hybrid model outperforms Microsoft Word’s grammar checker on context-sensitive spelling correction tasks.
  • Trigrams are more effective than Bayes when corrections depend on syntactic constraints, such as subject-verb agreement.
  • Bayes outperforms Trigrams when distinctions rely on lexical or collocational features rather than syntax.
  • The combination in Tribayes leverages the complementary strengths of both methods, resulting in higher overall accuracy.
  • The system demonstrates robustness across diverse error types, including homophones and near-synonym misuse.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.