A metric to search for relevant words