Skip to content

Simstring matcher could produce span with corrected term  #38

Description

@nourG22

Issue

When using SimString for typo detection, it accurately identifies misspelled words like "mxnidipine" but lacks functionality to produce the corrected version of the word, such as "manidipine".

Reproduction Steps

  1. Input text containing misspelled words, such as "mxnidipine".
  2. Utilize SimString for word detection, even when encountering typos.

Current Behavior

SimString accurately identifies misspelled terms but does not provide the corrected version.

Cause

The current logic of SimString is constrained within a parent class, lacking a specialized run() method which hinders the generation of corrected terms.

Suggested Solution

Implement a run() specialization within the SimString matcher class to enable the generation of corrected terms. This specialization should extend to both SimString matcher and regular expression matcher functionalities.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions