It is interesting to note that in 1990 there was an expert system composed of a myriad of handmade rules that could produce Bach-like harmonizations.
http://www.global-supercomputing.com/people/kemal.ebcioglu/p...
Unfortunately I can't seem to find the samples now, but to my (untrained) ear they sounded as Bach as the real thing.