add ability to change stemmer and distance algorythms