A very naive implementation of a 'Thats what she said' bot that uses a naive bayesian classifier (thankfully not implemented by myself) but I found this presentation and quora post extremely useful in rationalizating the techniques used.
Currently the bot doesn't do any learning (but will be the next feature) and hence can only base it's weighting axioms from the training data provided.