code: private String findSegmentLemma(String segment) {
  		Collection<String> candidates = this.neoclassicalPrefixes.getTranslations(segment);
  		if(candidates.isEmpty())
  			return segment;
  		else {
  			String bestLemma = segment;
  			double bestValue = 0d;
  			for(String candidateLemma:candidates) {
  				for(Term t:swtLemmaIndex.getTerms(candidateLemma)) {
  					if(t.getSpecificity() > bestValue) {
  						bestValue = t.getSpecificity();
  						bestLemma = t.getLemma();
  					}
  				}
  			}
  			return bestLemma;
  		}
  	}
docs: /*
  Finds the best lemma for a segment