Identifying the Correct Word for a given Prefix