Improved word recognition

Adjust for the fact that users prefer to type prefixes rather than arbitrary substrings