A Java text analyser