Contextual Spell Checking via Pre-computed Candidate Scores

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional spell checking methods fail to accurately suggest replacement words for misspellings, especially when valid words are used improperly, as they do not adequately consider the context in which the words are used.

Innovation Solution

A spell checking system and method that utilizes a candidate table with subject word and candidate replacement word pairs, along with corresponding candidate scores, to suggest replacement words based on context, using a candidate generator and contextual spelling engine to analyze and provide probabilistic suggestions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional lexicon-based spell checking is used, then invalid words can be detected, but valid words used improperly cannot be detected and accurate replacement suggestions cannot be provided

Engineering Contradiction:
Improvedetection accuracyVSAvoidcontextual understanding
Core Design Contradiction:
Measurement precisionVSAdaptability or versatility

Solution Approach 1:

The system changes the parameter of word evaluation from binary (valid/invalid) to continuous (contextual appropriateness score). By computing replacement scores based on contextual factors and comparing them against a threshold, the system can identify both invalid words and valid words used improperly, achieving high detection accuracy while maintaining contextual understanding.

Inventive Principle:
Principle #35Parameter changes

2Ease of manufacture

If replacement suggestions are based on edit distance, then invalid words can be corrected, but the most appropriate replacement word cannot be suggested without context analysis

Engineering Contradiction:
Improveimplementation simplicityVSAvoidsuggestion accuracy
Core Design Contradiction:
Ease of manufactureVSMeasurement precision

Solution Approach 1:

The system performs preliminary action by pre-computing and storing replacement suggestions with scores in a candidate table during system initialization. This allows the runtime system to simply look up and display pre-computed suggestions rather than performing complex context analysis during user interaction, maintaining implementation simplicity while achieving high suggestion accuracy through pre-computed contextual scores.

Inventive Principle:
Principle #10Preliminary action

3Measurement precision

If context analysis is performed to provide accurate replacement suggestions, then suggestion quality improves, but system complexity increases

Engineering Contradiction:
Improvesuggestion qualityVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system performs the complex context analysis work in advance during system initialization, populating a candidate table with pre-computed replacement suggestions and scores. At runtime, the system simply retrieves and displays these pre-computed results, maintaining low operational complexity while achieving high suggestion quality through the pre-performed context analysis.

Inventive Principle:
Principle #10Preliminary action

4Measurement precision

If a comprehensive candidate table with contextual scores is used, then detection and suggestion quality improves, but implementation becomes simpler and more scalable

Engineering Contradiction:
Improvedetection qualityVSAvoidimplementation complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The comprehensive candidate table with contextual scores is constructed in advance during system initialization. This pre-computation approach allows the runtime system to achieve high detection quality through simple table lookups and score comparisons, making implementation simpler and more scalable despite the comprehensiveness of the underlying data structure.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS7584093B2Method and system for generating spelling suggestions
Publication Date: 2009.09.01 MICROSOFT TECHNOLOGY LICENSING LLC
  • US7584093B2 patent drawing
  • US7584093B2 patent drawing
  • US7584093B2 patent drawing

AI summary

A computer implemented method of suggesting replacement words for words of a string. In the method, an input string of input words is received. The input words are then matched to subject words of a candidate table. Next, candidate replacement words and scores from the candidate table corresponding to the matched subject words are extracted. Each score is indicative of a probability that the input word should be replaced with the corresponding candidate replacement word. Finally, replacement of the input words with their corresponding candidate replacement words is selectively suggested based on the scores for the replacement words. Another aspect of the present invention is directed to a spell checking system that is configured to implement the method.