If a user types an invalid command, Aesh could suggest commands matching the mistyped command.
It is recommended to use the Levenshtein Distance algorithm for that matter.
A possible implementation is in https://github.com/forge/core/blob/master/shell/src/main/java/org/jboss/forge/shell/observers/DidYouMeanObserver.java