Extracting statistics from wp-posts

Ended up writing in Ruby because problems with text handling in R, including UTF8. Includes script and csv datafile.