A set of Java programs use the lexicon to work through the variations in biomedical texts by relating words by their parts of speech , which can be helpful in web searches or searches through an electronic medical record .