I agree with @gphilip, we need a bit more information to comprehent your question fully.
However, perhaps the NLTK WordNet helps, to get similar words (synset) as well as compute the similarity between two words.