Skip to content

smart Corrector::match #99

@dbaltas

Description

@dbaltas

The current implementation of Corrector::match currently used in HelpCommand::execute is quite naive since it is only based on php's native similar_text.

Consider making it smarter.

The idea occurred after

$ phpbrew uninstall php-7.0.15
Did you mean 'install'? [Y/n]

Where one presses Yes (or at least I did) without second thought.

I would expect Corrector::match to say "Did you mean 'remove'? [Y/n]".

If this is a direction you would like to go towards, I would be happy to provide a first implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions