Keyword not found recommendations

For issue #888.
This should be a normal method, not a nested function.