Learning to form words (rbm)