A Probabilistic Model for Stemmer Generation