Skip to content

Switch over to leven for command suggestion #5164

Closed
@jamesgeorge007

Description

@jamesgeorge007

What problem does this feature solve?

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.

What does the proposed API look like?

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

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