Matches last letters with dictinary