Comparing relationships of words