Design and programming of textual data mining tools