Skip to content

Migrate to leven to find the closest match for an unknown command #959

@jamesgeorge007

Description

@jamesgeorge007

Describe the Feature

As of now didyoumean.js matching engine is used to suggest matching commands if the user mistypes. But it is not longer actively maintained. Instead I would suggest switching over to leven which is the fastest JS implementation of the Levenshtein distance algorithm.

Possible Implementations

leven returns the distance between 2 strings which can be made use of to find the exact match.

Related Issues

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions