CLIFramework icon indicating copy to clipboard operation
CLIFramework copied to clipboard

smart Corrector::match

Open dbaltas opened this issue 8 years ago • 1 comments

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.

dbaltas avatar Feb 07 '17 12:02 dbaltas

Sure! If you have any plan can improve this, any implementation is welcomed. :)

c9s avatar Feb 07 '17 12:02 c9s