Relationx,y = 1 − max(log|A|, log|B|) − log|A ∩ B| T − min(log|A|, log|B|) Here A and B are the set of articles which link to the articles x and y respectively, T is the total number of Wikipedia articles, A ∩ B is their overlap.
for every W ikipedia word, we find the semantic relatedness to all other such words.