Generic trainer for the memorization of words and phrases