In measuring the substitutability of words, the co-occurrence information between a target word (the gap) and its context words is commonly used in statistical approaches.
the mutual information can measure the cooccurrence strength between a near-synonym and the words in a given context.