Variant Hash Tables for Real-Time Spelling Correction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing real-time spelling correction techniques generate excessive false positives and are inefficient, often requiring time proportional to the dictionary size for detection, which limits their utility and reliability.

Innovation Solution

The use of variant hash tables based on deletion, insertion, replacement, and transposition operations to correct spelling errors, allowing for efficient evaluation of candidate words against these tables to provide accurate corrections without false positives, with algorithms optimizing time complexity for distance one and two misspellings.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If existing real-time spelling correction techniques are used, then spelling errors can be detected, but excessive false positives are generated and efficiency is reduced

Engineering Contradiction:
Improvespelling correction accuracyVSAvoidspell checking efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the spelling correction problem into multiple hash tables, each handling specific edit distance operations (deletion, insertion, replacement, transposition). This segmentation allows the system to check different types of spelling errors in parallel, improving both accuracy and efficiency by avoiding the need to check all possible corrections against the entire dictionary.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary actions by pre-computing and storing all possible single-character edit operations on dictionary words in hash tables before the actual spelling correction task. This preliminary preparation enables O(1) lookup time during correction, eliminating the need for time-consuming dictionary scans during real-time operation.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If existing spelling correction methods are used, then corrections can be provided, but time proportional to dictionary size is required for detection

Engineering Contradiction:
Improveedit distance calculation accuracyVSAvoidspelling detection time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent replaces the mechanical system of linear dictionary scanning with a hash-based lookup system. By organizing corrections into hash tables with O(1) average lookup time, the system eliminates the O(D) time complexity associated with traditional dictionary-based methods, where D is the dictionary size.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The patent changes the parameter of time complexity from O(D) to O(W) for distance one corrections and O(W²) for distance two corrections, where W is the maximum word length. This is achieved by transforming the data structure from a linear dictionary to hash tables indexed by edit distance operations.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If comprehensive spelling correction is performed, then more errors are detected, but false positives increase excessively

Engineering Contradiction:
Improveerror detection coverageVSAvoidfalse positives
Core Design Contradiction:
ReliabilityVSObject-generated harmful factors

Solution Approach 1:

The patent introduces hash tables as intermediary structures between the candidate word and the dictionary. These hash tables act as mediators that pre-filter and organize possible corrections, allowing the system to comprehensively check all edit distance variations while eliminating false positives through structured validation against the actual dictionary words stored in the hash tables.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS9552349B2Methods and apparatus for performing spelling corrections using one or more variant hash tables
Publication Date: 2017.01.24 MAPLEBEAR INC
  • US9552349B2 patent drawing
  • US9552349B2 patent drawing
  • US9552349B2 patent drawing

AI summary

Methods and apparatus are provided for performing spelling corrections using one or more variant hash tables. The spelling of at least one candidate word is corrected by obtaining at least one variant dictionary hash table based on variants of a set of known correctly spelled words, wherein the variants are obtained by applying one or more of a deletion, insertion, replacement, and transposition operation on the correctly spelled words; obtaining from the candidate word one or more lookup variants using one or more of the deletion, insertion, replacement, and transposition operations; evaluating one or more of the candidate word and the lookup variants against the at least one variant dictionary hash table; and indicating a candidate correction if there is at least one match in the at least one variant dictionary hash table.