Akismet, while a plugin, is included in the default WordPress install -- it just has to be activated. I'm not sure how a standalone install of WordPress would competently fight spam in the automated manner you're advocating. Since spam techniques are constantly evolving, it's a pretty challenging machine-learning problem to stay a step ahead. That's where services such as Akismet come in.
http://akismet.com/how/